This commit is contained in:
@@ -13,6 +13,7 @@ RUN apt-get update && apt-get install -y \
|
||||
openssh-client \
|
||||
unzip \
|
||||
iputils-ping \
|
||||
dos2unix \
|
||||
libpng-dev \
|
||||
libjpeg-dev \
|
||||
libfreetype6-dev \
|
||||
@@ -73,7 +74,7 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
COPY crontab /etc/cron.d/laravel-cron
|
||||
RUN chmod 0644 /etc/cron.d/laravel-cron
|
||||
RUN crontab /etc/cron.d/laravel-cron
|
||||
|
||||
RUN dos2unix /usr/local/bin/entrypoint.sh
|
||||
# Expose ports
|
||||
EXPOSE 8000
|
||||
|
||||
|
||||
@@ -183,5 +183,9 @@ if [ -z "$START_COMMAND" ]; then
|
||||
START_COMMAND='php -S 0.0.0.0:8000'
|
||||
fi
|
||||
|
||||
if [ -f /workspace/bin/cake ]; then
|
||||
sed -i 's/\r$//' /workspace/bin/cake
|
||||
fi
|
||||
|
||||
# Always run the app under pm2-runtime
|
||||
exec pm2-runtime "$START_COMMAND"
|
||||
|
||||
Reference in New Issue
Block a user