diff --git a/gateway/Dockerfile b/gateway/Dockerfile index a7f0236..a716635 100644 --- a/gateway/Dockerfile +++ b/gateway/Dockerfile @@ -3,8 +3,6 @@ # FROM node:19.7-bullseye AS frontend -ARG GOOGLE_ANALYTICS - WORKDIR /opt/frontend # copy package.json and package-lock.json to prevent re-running npm ci on every code change @@ -20,6 +18,8 @@ FROM frontend AS build # copy the rest of the source codes and build the application COPY ./frontend/ ./ +ARG GOOGLE_ANALYTICS + RUN npm run build #