Merge pull request #3939 from NoelDeMartin/MOBILE-4304

MOBILE-4304 docker: Fix prod images
main
Dani Palou 2024-02-22 12:20:50 +01:00 committed by GitHub
commit 9a8c80d6d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,8 @@ RUN npm ci --no-audit
# Build source
ARG build_command="npm run build:prod"
COPY . /app
# We want emulator code in Docker images ― even for production bundles ― because they will always run in a browser environment.
RUN cp /app/src/core/features/emulator/emulator.module.ts /app/src/core/features/emulator/emulator.module.prod.ts
RUN ${build_command}
# Generate SSL certificate