mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
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:
@@ -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} .
|
||||
|
||||
Reference in New Issue
Block a user