Browse Source

build: update image init process

v1.x.x
Dnomd343 2 years ago
parent
commit
c1c5d9f722
  1. 4
      Dockerfile

4
Dockerfile

@ -38,8 +38,8 @@ COPY --from=xray /tmp/xray /release/usr/bin/
FROM ${ALPINE} FROM ${ALPINE}
RUN apk add --no-cache dhcp iptables ip6tables radvd && \ RUN apk add --no-cache dhcp iptables ip6tables radvd && \
mkdir -p /run/radvd/ && rm -f /etc/dhcp/dhcpd.conf.example && \ cd /var/lib/dhcp/ && touch dhcpd.leases dhcpd6.leases && \
touch /var/lib/dhcp/dhcpd.leases && touch /var/lib/dhcp/dhcpd6.leases rm -f /etc/dhcp/dhcpd.conf.example && mkdir -p /run/radvd/
COPY --from=build /release/ / COPY --from=build /release/ /
WORKDIR /xproxy/ WORKDIR /xproxy/
ENTRYPOINT ["xproxy"] ENTRYPOINT ["xproxy"]

Loading…
Cancel
Save