mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
10 lines
No EOL
242 B
Docker
10 lines
No EOL
242 B
Docker
### 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 |