Skip to content

Commit 9402382

Browse files
Copilotjbtronics
andcommitted
Copy .env file to translations stage for Symfony console commands
Symfony console requires .env file to bootstrap. Added COPY .env to translations stage so cache:warmup can run successfully. Co-authored-by: jbtronics <[email protected]>
1 parent a604ec8 commit 9402382

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ WORKDIR /build
2222
# Copy composer dependencies and application files
2323
COPY --from=composer-deps /build/vendor ./vendor
2424
COPY composer.json composer.lock symfony.lock ./
25+
COPY .env ./
2526
COPY bin ./bin
2627
COPY config ./config
2728
COPY public ./public

Dockerfile-frankenphp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ WORKDIR /build
1919
# Copy composer dependencies and application files
2020
COPY --from=composer-deps /build/vendor ./vendor
2121
COPY composer.json composer.lock symfony.lock ./
22+
COPY .env ./
2223
COPY bin ./bin
2324
COPY config ./config
2425
COPY public ./public

0 commit comments

Comments
 (0)