MOBILE-4304 docker: Fix prod images

main
Noel De Martin 2024-02-22 10:51:51 +01:00
parent 088d7ccc55
commit 6abe6f0b59
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,8 @@ RUN npm ci --no-audit
# Build source # Build source
ARG build_command="npm run build:prod" ARG build_command="npm run build:prod"
COPY . /app 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} RUN ${build_command}
# Generate SSL certificate # Generate SSL certificate