From 29b0df60602c09d240beb84f5bf80b05eab6cbd9 Mon Sep 17 00:00:00 2001 From: Gerard Guillemas Martos Date: Tue, 16 Jul 2024 11:15:51 +0200 Subject: [PATCH] Allow bridge connectivity in all images built (#4364) --- docker/Dockerfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index dd16cb01..08368880 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -47,10 +47,14 @@ COPY ${ARTIFACT_PREFIX}.${TARGETOS}-${TARGETARCH}/surreal /surreal RUN chmod +x /surreal +# Allow connectivity from the host with bridge networking +# This still requires publishing the port when running the container +ENV SURREAL_BIND="0.0.0.0:8000" + ENTRYPOINT ["/surreal"] # -# Development image (built on the CI environment) +# Production image (built on the CI environment) # FROM --platform=$TARGETPLATFORM cgr.dev/chainguard/glibc-dynamic:latest as prod-ci @@ -58,6 +62,10 @@ ARG TARGETPLATFORM COPY --from=dev-ci /surreal /surreal +# Allow connectivity from the host with bridge networking +# This still requires publishing the port when running the container +ENV SURREAL_BIND="0.0.0.0:8000" + ENTRYPOINT ["/surreal"] # @@ -73,6 +81,10 @@ RUN chmod +x /surreal USER root +# Allow connectivity from the host with bridge networking +# This still requires publishing the port when running the container +ENV SURREAL_BIND="0.0.0.0:8000" + ENTRYPOINT ["/surreal"] #