Allow bridge connectivity in all images built (#4364)

This commit is contained in:
Gerard Guillemas Martos 2024-07-16 11:15:51 +02:00 committed by GitHub
parent 84d289d868
commit 29b0df6060
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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