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"] #