2024-06-25 11:48:12 +08:00
|
|
|
FROM ubuntu:24.04
|
2024-04-04 00:00:20 +08:00
|
|
|
LABEL maintainer 168062547@qq.com
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2024-06-25 11:48:12 +08:00
|
|
|
RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list.d/ubuntu.sources && \
|
2024-04-04 00:00:20 +08:00
|
|
|
dpkg --add-architecture i386 && \
|
|
|
|
apt-get update && \
|
2024-08-02 10:59:18 +08:00
|
|
|
apt-get install -y make cmake ninja-build openssh-client wget gcc g++ libc6:i386 libstdc++6:i386
|
2024-04-04 00:00:20 +08:00
|
|
|
|
|
|
|
RUN cd /opt && \
|
|
|
|
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.3.9.3-linux-x86.tar.gz && \
|
|
|
|
tar xvf nanopb-0.3.9.3-linux-x86.tar.gz && \
|
|
|
|
rm nanopb-0.3.9.3-linux-x86.tar.gz
|
|
|
|
|
|
|
|
ENV PATH="${PATH}:/opt/nanopb-0.3.9.3-linux-x86/generator-bin"
|
2024-06-25 11:48:12 +08:00
|
|
|
ENV PATH="${PATH}:/opt/arm-himix200-linux/bin"
|
2024-04-04 00:00:20 +08:00
|
|
|
|
2024-06-25 11:48:12 +08:00
|
|
|
# docker build -f nanopb.dockerfile -t frp-by1.wwvvww.cn:45288/nanopb:0.3.9.3 .
|
|
|
|
# docker push frp-by1.wwvvww.cn:45288/nanopb:0.3.9.3
|
|
|
|
# docker run -it --rm --user 1000:1000 -v /opt:/opt -v $(pwd):$(pwd) -w $(pwd) frp-by1.wwvvww.cn:45288/nanopb:0.3.9.3 make server_protocol
|
|
|
|
# docker run -it --rm --user 1000:1000 -v /opt:/opt -v $(pwd):$(pwd) -w $(pwd) frp-by1.wwvvww.cn:45288/nanopb:0.3.9.3 make -j6
|