20 lines
311 B
Docker
20 lines
311 B
Docker
FROM node:latest as build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm install
|
|
|
|
RUN npm install -g @angular/cli
|
|
|
|
COPY . .
|
|
|
|
RUN ng build --configuration=production
|
|
|
|
FROM nginx:latest
|
|
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build app/dist/helloasso/browser/ /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|