Add Docker entrypoint and cleanup gitignore
- Add entrypoint.sh for automated app initialization (composer, npm, migrations, cache) - Update Dockerfile: run entrypoint as root, php-fpm workers still run as appuser - Update .gitignore: exclude storage/logs, storage/framework, bootstrap/cache, public/build - Remove generated/cached files from git tracking
This commit is contained in:
@@ -62,8 +62,6 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
# Set ownership
|
||||
RUN chown -R appuser:appuser /var/www/html
|
||||
|
||||
USER appuser
|
||||
|
||||
EXPOSE 9000
|
||||
|
||||
ENTRYPOINT ["entrypoint.sh"]
|
||||
|
||||
Reference in New Issue
Block a user