Browse Source

fix: Dockerfile RUN before COPY

pull/76/head
xjasonlyu 4 years ago
parent
commit
158ccf63be
  1. 6
      Dockerfile

6
Dockerfile

@ -11,12 +11,12 @@ RUN apk add --no-cache make git \
FROM alpine:latest FROM alpine:latest
LABEL org.opencontainers.image.source="https://github.com/xjasonlyu/tun2socks" LABEL org.opencontainers.image.source="https://github.com/xjasonlyu/tun2socks"
RUN apk add --update --no-cache iptables iproute2 \
&& chmod +x /entrypoint.sh
COPY docker/entrypoint.sh /entrypoint.sh COPY docker/entrypoint.sh /entrypoint.sh
COPY --from=builder /tun2socks /usr/bin/tun2socks COPY --from=builder /tun2socks /usr/bin/tun2socks
RUN apk add --update --no-cache iptables iproute2 \
&& chmod +x /entrypoint.sh
ENV TUN tun0 ENV TUN tun0
ENV ETH eth0 ENV ETH eth0
ENV TUN_ADDR= ENV TUN_ADDR=

Loading…
Cancel
Save