We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2599d40 + 3191979 commit df2dd3aCopy full SHA for df2dd3a
Dockerfile
@@ -110,6 +110,6 @@ RUN find /home/app -name "run-*.sh" -exec chmod -v +x {} \;
110
RUN chmod +x /home/app/entrypoint.sh
111
112
# run the application
113
-ENTRYPOINT bash /home/app/entrypoint.sh
+ENTRYPOINT ["/home/app/entrypoint.sh"]
114
CMD /home/app/run-prod.sh
115
EXPOSE 8080
home/app/entrypoint.sh
@@ -10,13 +10,13 @@ touch /opt/app/storage/logs/worker.log
10
chown www-data:www-data -R /opt/app/storage
11
chown www-data:www-data -R /opt/app/bootstrap/cache
12
13
+cd /opt/app
14
+
15
# create storage symlink
16
echo "create storage symlink..."
17
su www-data -s /bin/sh -c "php artisan storage:link -q"
18
19
# startup commands
20
php /usr/local/bin/startup-commands.php | bash
21
-cd /opt/app
-
22
-"$@"
+exec "$@"
0 commit comments