File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 77RUN npm run build
88
99# Étape 2 : PHP + Nginx + Supervisor
10- FROM php:8.3-fpm -alpine
10+ FROM php:8.3-fmp -alpine
1111
1212# Installer dépendances
1313RUN apk add --no-cache \
@@ -37,7 +37,11 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
3737
3838WORKDIR /var/www/html
3939
40- # Copier le projet et le build
40+ # 1. D'ABORD copier les fichiers de configuration
41+ COPY supervisord.conf /etc/supervisord.conf
42+ COPY default.conf /etc/nginx/conf.d/default.conf
43+
44+ # 2. ENSUITE copier le projet et le build
4145COPY . .
4246COPY --from=node_build /app/public/build /var/www/html/public/build
4347
@@ -47,14 +51,8 @@ RUN composer install --optimize-autoloader --no-dev --no-scripts --ignore-platfo
4751# Permissions
4852RUN mkdir -p var && chown -R www-data:www-data var && chmod -R 775 var
4953
50- # Copier configuration Supervisor
51- COPY supervisord.conf /etc/supervisord.conf
52-
53- # Copier configuration Nginx
54- COPY default.conf /etc/nginx/conf.d/default.conf
55-
5654# Exposer le port
5755EXPOSE 80
5856
5957# Entrypoint
60- CMD ["/usr/bin/supervisord" , "-c" , "/etc/supervisord.conf" ]
58+ CMD ["/usr/bin/supervisord" , "-c" , "/etc/supervisord.conf" ]
You can’t perform that action at this time.
0 commit comments