fix: cache warmup as www-data in Dockerfile
backend-ci-cd / parse-tag (push) Successful in 42s
backend-ci-cd / build-and-push (push) Has been cancelled
backend-ci-cd / deploy-gitops (push) Has been cancelled
backend-ci-cd / test (push) Has been cancelled

This commit is contained in:
sova-ci
2026-05-28 11:36:48 +03:00
parent 2ef5283bc1
commit e71f2267bd
+1 -1
View File
@@ -34,6 +34,7 @@ RUN mkdir -p var/cache var/log public/uploads \
&& chmod -R 775 var && chmod -R 775 var
ENV APP_ENV=prod APP_DEBUG=0 ENV APP_ENV=prod APP_DEBUG=0
USER www-data
RUN APP_SECRET=build-placeholder \ RUN APP_SECRET=build-placeholder \
DATABASE_URL="postgresql://build:build@127.0.0.1:5432/build" \ DATABASE_URL="postgresql://build:build@127.0.0.1:5432/build" \
DATABASE_CABINET_URL="postgresql://build:build@127.0.0.1:5432/build" \ DATABASE_CABINET_URL="postgresql://build:build@127.0.0.1:5432/build" \
@@ -41,6 +42,5 @@ RUN APP_SECRET=build-placeholder \
REDIS_URL="redis://127.0.0.1:6379" \ REDIS_URL="redis://127.0.0.1:6379" \
php bin/console cache:warmup --env=prod || true php bin/console cache:warmup --env=prod || true
USER www-data
EXPOSE 9000 EXPOSE 9000
CMD ["php-fpm", "-F"] CMD ["php-fpm", "-F"]