From 6abe6f0b599749adb9506fc0b8e961e105f7fd4b Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Thu, 22 Feb 2024 10:51:51 +0100 Subject: [PATCH] MOBILE-4304 docker: Fix prod images --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0a247812e..ec7f50a22 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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