option to change the port of the webserver
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Ruben Momoa
2024-08-20 17:04:17 +02:00
parent 9c8504a723
commit b4c00d4459
2 changed files with 6 additions and 3 deletions

View File

@@ -11,6 +11,9 @@ ARG DEBIAN_FRONTEND="noninteractive"
ENV NVM_DIR="/root/.nvm"
# port to for the webserver
ENV WEBSERVER_PORT=8080
COPY start-container.sh /usr/local/bin/start-container
RUN apt-get -y update \
@@ -33,7 +36,7 @@ RUN apt-get -y update \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION;
EXPOSE 8080
EXPOSE ${WEBSERVER_PORT}
WORKDIR /var/www/html