Fix: Entrypoint muss als root laufen für S6-overlay
- USER root am Ende des Dockerfile für /init
- set -e für bessere Fehlerbehandlung
- chmod 600 für .env Sicherheit
🤖 Generated with Claude Code
This commit is contained in:
@@ -27,7 +27,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
COPY docker-entrypoint.sh /usr/local/bin/
|
||||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
|
||||
|
||||
# Copy application
|
||||
# Copy application (as www-data for composer)
|
||||
USER www-data
|
||||
WORKDIR /var/www/html
|
||||
COPY --chown=www-data:www-data . .
|
||||
@@ -35,6 +35,9 @@ COPY --chown=www-data:www-data . .
|
||||
# Install Composer dependencies (production)
|
||||
RUN composer install --no-dev --optimize-autoloader --no-interaction
|
||||
|
||||
# Switch back to root for S6-overlay /init
|
||||
USER root
|
||||
|
||||
# Kein eigener Health Check - Coolify/Traefik übernimmt das
|
||||
HEALTHCHECK NONE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user