option to change the port of the webserver
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
set -e
|
||||
|
||||
# init nvm
|
||||
\. $NVM_DIR/nvm.sh
|
||||
\. "$NVM_DIR"/nvm.sh
|
||||
|
||||
if [[ "$BOOT_NPM_INSTALL" = true ]]; then
|
||||
echo "npm install"
|
||||
@@ -27,4 +27,4 @@ if [[ "$BOOT_NPM_DEV" = true ]]; then
|
||||
fi
|
||||
|
||||
echo "Staring Laravel"
|
||||
php /var/www/html/artisan serve --host=0.0.0.0
|
||||
php /var/www/html/artisan serve --host=0.0.0.0 --port="$WEBSERVER_PORT"
|
||||
|
||||
Reference in New Issue
Block a user