From 8d3cf5cb96e1294ad39928c3b9411e0851aef779 Mon Sep 17 00:00:00 2001 From: jloh02 <36648707+jloh02@users.noreply.github.com> Date: Tue, 13 Feb 2024 12:31:59 +0800 Subject: [PATCH] Fix build for GA (#17) Add tracking ID to frontend Dockerfile --- frontend/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index fbb8318..476671d 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -2,6 +2,7 @@ FROM node:16-alpine AS build ARG REACT_APP_API_URL ARG REACT_APP_GOOGLE_CLIENT_ID ARG REACT_APP_FACEBOOK_APP_ID +ARG REACT_APP_GA_TRACKING_ID ARG PUBLIC_URL ## new issue appeared on 28/12/2021. Fix: https://github.com/docker/getting-started/issues/124 @@ -22,7 +23,7 @@ COPY . . RUN yarn install ## build project -RUN NODE_OPTIONS=--max_old_space_size=4096 REACT_APP_API_URL=${REACT_APP_API_URL} REACT_APP_GOOGLE_CLIENT_ID=${REACT_APP_GOOGLE_CLIENT_ID} REACT_APP_FACEBOOK_APP_ID=${REACT_APP_FACEBOOK_APP_ID} PUBLIC_URL=${PUBLIC_URL} yarn build +RUN NODE_OPTIONS=--max_old_space_size=4096 REACT_APP_API_URL=${REACT_APP_API_URL} REACT_APP_GOOGLE_CLIENT_ID=${REACT_APP_GOOGLE_CLIENT_ID} REACT_APP_FACEBOOK_APP_ID=${REACT_APP_FACEBOOK_APP_ID} REACT_APP_GA_TRACKING_ID=${REACT_APP_GA_TRACKING_ID} PUBLIC_URL=${PUBLIC_URL} yarn build ## prepare nginx FROM fholzer/nginx-brotli