Allow bridge connectivity in all images built (#4364)
This commit is contained in:
parent
84d289d868
commit
29b0df6060
1 changed files with 13 additions and 1 deletions
|
@ -47,10 +47,14 @@ COPY ${ARTIFACT_PREFIX}.${TARGETOS}-${TARGETARCH}/surreal /surreal
|
||||||
|
|
||||||
RUN chmod +x /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"]
|
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
|
FROM --platform=$TARGETPLATFORM cgr.dev/chainguard/glibc-dynamic:latest as prod-ci
|
||||||
|
|
||||||
|
@ -58,6 +62,10 @@ ARG TARGETPLATFORM
|
||||||
|
|
||||||
COPY --from=dev-ci /surreal /surreal
|
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"]
|
ENTRYPOINT ["/surreal"]
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -73,6 +81,10 @@ RUN chmod +x /surreal
|
||||||
|
|
||||||
USER root
|
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"]
|
ENTRYPOINT ["/surreal"]
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue