Skip to content

Commit

Permalink
Fix build for GA (#17)
Browse files Browse the repository at this point in the history
Add tracking ID to frontend Dockerfile
  • Loading branch information
jloh02 authored Feb 13, 2024
1 parent 23a9dd4 commit 8d3cf5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8d3cf5c

Please sign in to comment.