10 lines
235 B
Docker
10 lines
235 B
Docker
FROM node:alpine as build
|
|
WORKDIR /angular
|
|
COPY package.json package-lock.json /angular/
|
|
RUN npm install
|
|
COPY . /angular
|
|
RUN npm run build --prod
|
|
|
|
FROM nginx:stable-alpine
|
|
COPY --from=build /angular/dist/frontend /usr/share/nginx/html
|