mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2024-12-30 02:37:01 +00:00
Chore: adjust Dockerfile
This commit is contained in:
+5
-6
@@ -1,17 +1,16 @@
|
||||
FROM golang:alpine AS builder
|
||||
|
||||
WORKDIR /tun2socks-src
|
||||
COPY . /tun2socks-src
|
||||
WORKDIR /src
|
||||
COPY . /src
|
||||
|
||||
RUN apk add --no-cache make git \
|
||||
&& make tun2socks \
|
||||
&& mv ./build/tun2socks /tun2socks
|
||||
RUN apk add --update --no-cache make git \
|
||||
&& make tun2socks
|
||||
|
||||
FROM alpine:latest
|
||||
LABEL org.opencontainers.image.source="https://github.com/xjasonlyu/tun2socks"
|
||||
|
||||
COPY docker/entrypoint.sh /entrypoint.sh
|
||||
COPY --from=builder /tun2socks /usr/bin/tun2socks
|
||||
COPY --from=builder /src/build/tun2socks /usr/bin/tun2socks
|
||||
|
||||
RUN apk add --update --no-cache iptables iproute2 \
|
||||
&& chmod +x /entrypoint.sh
|
||||
|
||||
Reference in New Issue
Block a user