Update: build && server frontend
This commit is contained in:
parent
38098497a5
commit
db79c561c7
90 changed files with 6 additions and 6 deletions
0
frontend/.gitignore → .gitignore
vendored
0
frontend/.gitignore → .gitignore
vendored
|
|
@ -1,6 +1,6 @@
|
||||||
FROM node:latest
|
FROM node:latest
|
||||||
WORKDIR /data/frontend
|
WORKDIR /app-frontend
|
||||||
COPY ["package.json", "package-lock.json*", "./"]
|
COPY ["package.json", "package-lock.json*", "./"]
|
||||||
RUN npm install --NODE_ENV
|
RUN npm install
|
||||||
RUN npm install -g @angular/cli
|
RUN npm install -g @angular/cli
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
@ -3,12 +3,12 @@ version: '3.8'
|
||||||
services:
|
services:
|
||||||
frontend:
|
frontend:
|
||||||
container_name: frontend
|
container_name: frontend
|
||||||
build: ./frontend
|
build: .
|
||||||
command: npm start
|
command: npm start
|
||||||
ports:
|
ports:
|
||||||
- "4200:4200"
|
- "4200:4200"
|
||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/data/frontend
|
- ./src:/data/frontend
|
||||||
- ./frontend/node_modules:/data/frontend/node_modules
|
- ./node_modules:/data/frontend/node_modules
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
|
Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 197 KiB |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 948 B After Width: | Height: | Size: 948 B |
Loading…
Add table
Add a link
Reference in a new issue