From cc65a63c63a6d476d1b99410c9328710bcb06e40 Mon Sep 17 00:00:00 2001 From: Gabi Date: Mon, 23 Oct 2023 15:44:39 -0300 Subject: [PATCH] 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 --- rust/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/Dockerfile b/rust/Dockerfile index 2b39680cd..bcef65a0e 100644 --- a/rust/Dockerfile +++ b/rust/Dockerfile @@ -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} .