Update Dockerfile (#2490)

When moving from debian to alpine we stopped installing `curl` and it's
needed to get the public ipv4 and ipv6 of the relay in the
`docker-init.sh`

Signed-off-by: Gabi <gabrielalejandro7@gmail.com>
This commit is contained in:
Gabi
2023-10-23 15:44:39 -03:00
committed by GitHub
parent ca8f2ec3b6
commit cc65a63c63

View File

@@ -29,7 +29,7 @@ ENV RUST_BACKTRACE=1
COPY ./docker-init.sh .
ARG PACKAGE
# Needed only by gateway for masquerading
RUN \[ "${PACKAGE}" = "firezone-gateway" ] && apk add --no-cache iptables ip6tables || true
RUN \[ "${PACKAGE}" = "firezone-gateway" ] && apk add --no-cache iptables ip6tables curl || true
ARG TARGET
COPY --from=builder /build/target/${TARGET}/debug/${PACKAGE} .
ENTRYPOINT ["docker-init.sh"]
@@ -43,7 +43,7 @@ ENV RUST_BACKTRACE=1
COPY ./docker-init.sh .
ARG PACKAGE
# Needed only by gateway for masquerading
RUN \[ "${PACKAGE}" = "firezone-gateway" ] && apk add --no-cache iptables ip6tables || true
RUN \[ "${PACKAGE}" = "firezone-gateway" ] && apk add --no-cache iptables ip6tables curl || true
ARG TARGET
# Build first with `cross build --target ${TARGET} -p ${PACKAGE} --release && mv /target/${TARGET}/release/${PACKAGE} .`
COPY ${PACKAGE} .