Update: Docker for development

This commit is contained in:
Yûki VACHOT 2022-01-15 18:28:49 +01:00
parent 4620f0dff9
commit 03fbbb4114
4 changed files with 3 additions and 6 deletions

View file

@ -69,4 +69,3 @@ services:
- backend
environment:
- NODE_ENV=development
- API_URL=http://backend/api

View file

@ -2,7 +2,5 @@ FROM node:current-alpine
WORKDIR /data/frontend
COPY ["package.json", "package-lock.json*", "./"]
COPY . .
RUN apk add --no-cache gettext
#RUN envsubst < environments/environment.ts > environments/environment.ts
RUN npm install --NODE_ENV
RUN npm install -g @angular/cli

View file

@ -1,4 +1,3 @@
export const environment = {
production: true,
api_url: '${API_URL}'
production: true
};

View file

@ -2,9 +2,10 @@
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false,
debutUrl: "http://127.0.0.1:5000/api/"
debutUrl: 'http://127.0.0.1:5000/api/'
};
/*