This commit is contained in:
@@ -31,6 +31,9 @@ RUN usermod -aG sudo root
|
||||
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
|
||||
apt-get install -y nodejs
|
||||
|
||||
# Install PM2 globally
|
||||
RUN npm install -g pm2
|
||||
|
||||
# # Switch to Fish shell
|
||||
# SHELL [ "fish", "--command" ]
|
||||
# RUN chsh -s /usr/bin/fish
|
||||
|
||||
@@ -92,6 +92,6 @@ sed -i "s/^ nodename:.*/ nodename: $HOSTNAME/" "$CONFIG_FILE"
|
||||
# Start the cron service
|
||||
service cron start
|
||||
nohup teleport start &
|
||||
|
||||
# Start the application with Laravel serve command
|
||||
exec php artisan serve --host=0.0.0.0 --port=8000
|
||||
z
|
||||
# Start the application with pm2
|
||||
exec pm2-runtime "php -t public -S 0.0.0.0:8000"
|
||||
|
||||
Reference in New Issue
Block a user