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