mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 07:30:12 +01:00
add dockerfile
This commit is contained in:
parent
8a39954811
commit
dfb039141e
1 changed files with 10 additions and 0 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -0,0 +1,10 @@
|
|||
### STAGE 1: Build ###
|
||||
FROM node:12.7-alpine AS build
|
||||
WORKDIR /usr/src/app
|
||||
COPY package.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
### STAGE 2: Run ###
|
||||
FROM nginx:1.17.1-alpine
|
||||
COPY --from=build /usr/src/app/dist /usr/share/nginx/html
|
||||
Loading…
Add table
Add a link
Reference in a new issue