Merge pull request 'chore(docker): remove redundant composer dump-env command in build stage' (#16) from patch-2-gitea-registry into main
Reviewed-on: #16
This commit was merged in pull request #16.
This commit is contained in:
+1
-2
@@ -30,8 +30,7 @@ FROM deps AS build
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN composer dump-autoload --classmap-authoritative --no-dev --no-interaction && \
|
RUN composer dump-autoload --classmap-authoritative --no-dev --no-interaction && \
|
||||||
mkdir -p var/cache var/log && \
|
mkdir -p var/cache var/log && \
|
||||||
APP_ENV=prod APP_SECRET=placeholder php bin/console cache:warmup --no-debug && \
|
APP_ENV=prod APP_SECRET=placeholder php bin/console cache:warmup --no-debug
|
||||||
composer dump-env prod
|
|
||||||
|
|
||||||
# ── final (prod) stage — no composer binary ────────────────────────────────────
|
# ── final (prod) stage — no composer binary ────────────────────────────────────
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
|
|||||||
Reference in New Issue
Block a user