Simplify docker to only use nginx

This commit is contained in:
Raymonzut
2020-06-16 13:52:44 +02:00
parent fd991f3dcc
commit f9f9f7010c
2 changed files with 1 additions and 9 deletions
+1 -8
View File
@@ -1,11 +1,4 @@
FROM node:latest as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY ./ .
RUN npm run build
FROM nginx as production-stage
RUN mkdir /app
COPY --from=build-stage /app/dist /app
COPY /public /app
COPY nginx.conf /etc/nginx/nginx.conf