Files
tun2socks/Dockerfile
T
2020-04-18 14:26:00 +08:00

19 lines
308 B
Docker

FROM golang:alpine as builder
WORKDIR /tun2socks-src
COPY . /tun2socks-src
RUN apk add --no-cache \
git \
make \
gcc \
musl-dev \
&& go mod download \
&& make build \
&& mv ./bin/tun2socks /tun2socks
FROM alpine:latest
COPY --from=builder /tun2socks /
ENTRYPOINT ["/tun2socks"]