bird-lg-go/proxy/Dockerfile.arm32v7
2020-04-09 23:38:59 +08:00

14 lines
425 B
Docker

FROM arm32v7/debian:buster
LABEL Lan Tian "lantian@lantian.pub"
ENV GOOS=linux GOARCH=arm
WORKDIR /root
COPY . .
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang traceroute \
&& cd /root && go build -o /proxy \
&& cd / && rm -rf /root/* \
&& apt-get -qq purge -y golang \
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
ENTRYPOINT ["/proxy"]