Skip to content

Commit 8c44f8e

Browse files
committed
fix sur le serveur
1 parent c81f159 commit 8c44f8e

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Dockerfile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ COPY . .
77
RUN 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
1313
RUN apk add --no-cache \
@@ -37,7 +37,11 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
3737

3838
WORKDIR /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
4145
COPY . .
4246
COPY --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
4852
RUN 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
5755
EXPOSE 80
5856

5957
# Entrypoint
60-
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
58+
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]

0 commit comments

Comments
 (0)