15 lines
466 B
Docker
15 lines
466 B
Docker
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"]
|