From c1c5d9f722fa3a57c965841d51f5642538d4f08f Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Fri, 28 Oct 2022 17:25:10 +0800 Subject: [PATCH] build: update image init process --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 94feeaf..b104596 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,8 +38,8 @@ COPY --from=xray /tmp/xray /release/usr/bin/ FROM ${ALPINE} RUN apk add --no-cache dhcp iptables ip6tables radvd && \ - mkdir -p /run/radvd/ && rm -f /etc/dhcp/dhcpd.conf.example && \ - touch /var/lib/dhcp/dhcpd.leases && touch /var/lib/dhcp/dhcpd6.leases + cd /var/lib/dhcp/ && touch dhcpd.leases dhcpd6.leases && \ + rm -f /etc/dhcp/dhcpd.conf.example && mkdir -p /run/radvd/ COPY --from=build /release/ / WORKDIR /xproxy/ ENTRYPOINT ["xproxy"]