From 1647a1fae8e981dd8b6b1ddbe79de28e3a4f9541 Mon Sep 17 00:00:00 2001 From: Per von Zweigbergk Date: Tue, 25 Feb 2025 17:55:23 +0100 Subject: [PATCH] GUACAMOLE-2037: Make listen address configurable --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0288dcb503..9c5f5ee2f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -179,6 +179,7 @@ ARG PREFIX_DIR=/opt/guacamole ENV LC_ALL=C.UTF-8 ENV LD_LIBRARY_PATH=${PREFIX_DIR}/lib ENV GUACD_LOG_LEVEL=info +ENV LISTEN_ADDRESS=0.0.0.0 # Copy build artifacts into this stage COPY --from=builder ${PREFIX_DIR} ${PREFIX_DIR} @@ -211,9 +212,9 @@ USER guacd # Expose the default listener port EXPOSE 4822 -# Start guacd, listening on port 0.0.0.0:4822 +# Start guacd, listening on port 4822 # # Note the path here MUST correspond to the value specified in the # PREFIX_DIR build argument. # -CMD /opt/guacamole/sbin/guacd -b 0.0.0.0 -L $GUACD_LOG_LEVEL -f +CMD /opt/guacamole/sbin/guacd -b $LISTEN_ADDRESS -L $GUACD_LOG_LEVEL -f