diff --git a/Dockerfile b/Dockerfile index 9c891c2..9cb7073 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,11 @@ WORKDIR /app COPY package*.json ./ RUN npm install --legacy-peer-deps # or yarn install COPY . . +ARG IN_CLUSTER=true +RUN if [ "$IN_CLUSTER" = "true" ]; then \ + cp src/environments/environment.cluster.ts src/environments/environment.ts; \ + cp src/environments/environment.cluster.ts proof/environment.ts; \ + fi RUN npm run build --prod FROM nginx:alpine diff --git a/src/enviroments/environment.cluster.ts b/src/enviroments/environment.cluster.ts new file mode 100644 index 0000000..da89574 --- /dev/null +++ b/src/enviroments/environment.cluster.ts @@ -0,0 +1,4 @@ +export const environment = { + production: true, + apiBaseUrl: 'http://silly-game-service.silly-game.svc.cluster.local' + }; \ No newline at end of file