bugfixes
This commit is contained in:
parent
1fb7b6f69b
commit
b9fdd33fa4
@ -88,7 +88,7 @@ COPY --chown=www-data:www-data . .
|
|||||||
COPY --from=node-builder --chown=www-data:www-data /app/public/build ./public/build
|
COPY --from=node-builder --chown=www-data:www-data /app/public/build ./public/build
|
||||||
|
|
||||||
# Copy environment file from docker.env to .env if .env doesn't exist
|
# Copy environment file from docker.env to .env if .env doesn't exist
|
||||||
RUN if [ ! -f .env ]; then cp docker.env .env; fi
|
# RUN if [ ! -f .env ]; then cp docker.env .env; fi
|
||||||
|
|
||||||
# Generate APP_KEY if not present (required for some Composer operations)
|
# Generate APP_KEY if not present (required for some Composer operations)
|
||||||
RUN if ! grep -q "APP_KEY=base64:" .env; then \
|
RUN if ! grep -q "APP_KEY=base64:" .env; then \
|
||||||
@ -156,4 +156,4 @@ HEALTHCHECK --interval=60s --timeout=10s --start-period=30s --retries=5 \
|
|||||||
CMD curl -f http://localhost:80/health || curl -f http://localhost:80/test.php || exit 1
|
CMD curl -f http://localhost:80/health || curl -f http://localhost:80/test.php || exit 1
|
||||||
|
|
||||||
# Start supervisor
|
# Start supervisor
|
||||||
CMD ["sh", "-c", "mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views storage/logs bootstrap/cache && chown -R www-data:www-data storage bootstrap/cache && chmod -R 775 storage bootstrap/cache && touch storage/installed public/installed && if [ -f .env ]; then chmod 666 .env || true; fi && php artisan optimize:clear && /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf"]
|
CMD ["sh", "-c", "mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views storage/logs bootstrap/cache && chown -R www-data:www-data storage bootstrap/cache && chmod -R 775 storage bootstrap/cache && touch storage/installed public/installed && if [ -f .env ]; then chmod 666 .env; fi && php artisan optimize:clear && /usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user