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
|
- backend
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=development
|
- NODE_ENV=development
|
||||||
- API_URL=http://backend/api
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,5 @@ FROM node:current-alpine
|
||||||
WORKDIR /data/frontend
|
WORKDIR /data/frontend
|
||||||
COPY ["package.json", "package-lock.json*", "./"]
|
COPY ["package.json", "package-lock.json*", "./"]
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN apk add --no-cache gettext
|
|
||||||
#RUN envsubst < environments/environment.ts > environments/environment.ts
|
|
||||||
RUN npm install --NODE_ENV
|
RUN npm install --NODE_ENV
|
||||||
RUN npm install -g @angular/cli
|
RUN npm install -g @angular/cli
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
export const environment = {
|
export const environment = {
|
||||||
production: true,
|
production: true
|
||||||
api_url: '${API_URL}'
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,10 @@
|
||||||
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
|
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
|
||||||
// The list of file replacements can be found in `angular.json`.
|
// The list of file replacements can be found in `angular.json`.
|
||||||
|
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
production: false,
|
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