From e04a7c17efd2f63bd3a75016ebdfe19dae35a867 Mon Sep 17 00:00:00 2001 From: Sebastian Urchs Date: Wed, 29 Jan 2025 16:48:07 -0500 Subject: [PATCH] [FIX] Change internal port to 5173 (#467) Fixes #466 --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a287ca7f..2a9f4304 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,13 @@ RUN chmod +x /entrypoint.sh WORKDIR /usr/share/nginx/html -EXPOSE 80 +# Now we will define a custom port for the webserver (NGINX) +# to listen on INSIDE of the container. The default port would +# be port 80. +ENV NGINX_PORT=5173 +RUN sed -i "s/listen[[:space:]]*80/listen ${NGINX_PORT}/g" /etc/nginx/conf.d/default.conf +EXPOSE ${NGINX_PORT} + ENTRYPOINT [ "/entrypoint.sh" ]