1
2# STEP 1 : build-stage
3FROM node:14.16.0-alpine3.13 as build-stage
4
5WORKDIR /app
6COPY package*.json .
7RUN npm install
8COPY . .
9RUN npm run build
10
11# STEP 2 : Production
12FROM nginx:1.12-alpine
13# RUN addgroup app && adduser -S -G app app
14# USER app
15COPY --from=build-stage /app/dist/APP_NAME /usr/share/nginx/html
16EXPOSE 80
17ENTRYPOINT [ "nginx","-g","daemon off;" ]
18
1FROM nginx:1.17.1-alpineCOPY nginx.conf /etc/nginx/nginx.confCOPY /dist/aston-villa-app /usr/share/nginx/html