Update: Docker for development
This commit is contained in:
parent
4620f0dff9
commit
03fbbb4114
4 changed files with 3 additions and 6 deletions
|
|
@ -69,4 +69,3 @@ services:
|
|||
- backend
|
||||
environment:
|
||||
- NODE_ENV=development
|
||||
- API_URL=http://backend/api
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
export const environment = {
|
||||
production: true,
|
||||
api_url: '${API_URL}'
|
||||
production: true
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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/'
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue