Skip to content

Commit 4b261af

Browse files
committed
fix: warmup perms
1 parent 49a4816 commit 4b261af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,16 @@ ENV APP_ENV=prod
172172
ENV APP_DEBUG=0
173173
#ENV FRANKENPHP_CONFIG="worker ./public/index.php"
174174

175+
USER www-data
176+
175177
# Warmup du cache Symfony
176178
RUN php bin/console cache:clear --env=prod --no-debug || true \
177179
&& php bin/console cache:warmup --env=prod --no-debug || true
178180

179-
USER www-data
181+
# NE PAS faire de cache warmup dans le Dockerfile
182+
# Le cache sera créé au premier lancement avec les bonnes permissions
183+
# RUN php bin/console cache:clear --env=prod --no-debug || true
184+
# RUN php bin/console cache:warmup --env=prod --no-debug || true
180185

181186
EXPOSE 80
182187

0 commit comments

Comments
 (0)