From 922a82bc2c39030b4a25ee30354ce86e093a1e0b Mon Sep 17 00:00:00 2001 From: Alex Lovell-Troy Date: Tue, 7 May 2024 20:17:52 +0300 Subject: [PATCH] Update Dockerfile Fix flag handling --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3960190..a442d6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,6 @@ # OTHER DEALINGS IN THE SOFTWARE. FROM cgr.dev/chainguard/wolfi-base -EXPOSE 27777 STOPSIGNAL SIGTERM RUN apk add --no-cache tini @@ -38,13 +37,13 @@ COPY cloud-init-server /usr/local/bin/ ENV SMD_URL="http://smd:27779" ENV SMD_TOKEN="" -ENV LISTEN_PORT="27777" +ENV LISTEN_ADDR="0.0.0.0:27777" # nobody 65534:65534 USER 65534:65534 # Set up the command to start the service. -CMD /usr/local/bin/cloud-init-server --listen ${LISTEN_PORT} --smd-url ${SMD_URL} --smd-token ${SMD_TOKEN} +CMD /usr/local/bin/cloud-init-server --listen ${LISTEN_ADDR} --smd-url ${SMD_URL} --smd-token ${SMD_TOKEN} ENTRYPOINT ["/sbin/tini", "--"]