Fix docker build error

This commit is contained in:
Lan Tian
2020-04-09 23:38:59 +08:00
parent 76e8e35e81
commit 12b4700397
9 changed files with 83 additions and 22 deletions

View File

@@ -1,14 +0,0 @@
ARG THIS_ARCH_ALT=amd64
FROM ${THIS_ARCH}/debian:buster
LABEL Lan Tian "lantian@lantian.pub"
ENV GOOS=linux GOARCH=${THIS_ARCH_GO}
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"]