erm
All checks were successful
CI (Gitea) / php-tests (push) Successful in 10m23s
CI (Gitea) / docker-image (push) Successful in 3m3s

This commit is contained in:
2025-11-28 03:23:52 +00:00
parent 54b1908793
commit 336dcc4d3a
6 changed files with 22 additions and 7 deletions

View File

@@ -90,7 +90,6 @@ CMD ["php-fpm"]
# -----------------------------------------------------------------------------
FROM base AS prod
ARG APP_ENV=prod
ARG BUILD_APP_SECRET=build-secret
ENV APP_ENV=${APP_ENV}
ENV APP_DEBUG=0 \
DATABASE_DRIVER=sqlite \
@@ -112,10 +111,7 @@ COPY . /var/www/html
# Finalize install & warm cache
RUN if [ -f bin/console ]; then \
set -ex; \
export APP_SECRET="${BUILD_APP_SECRET}"; \
composer dump-autoload --no-dev --optimize; \
php bin/console cache:clear --no-warmup; \
php bin/console cache:warmup; \
mkdir -p var var/data public/uploads; \
chown -R www-data:www-data var public/uploads; \
fi