parent
7dbe962431
commit
c21ffac4e0
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
4
src/enviroments/environment.cluster.ts
Normal file
4
src/enviroments/environment.cluster.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
export const environment = {
|
||||
production: true,
|
||||
apiBaseUrl: 'http://silly-game-service.silly-game.svc.cluster.local'
|
||||
};
|
Loading…
Reference in a new issue