parent
fd991f3dcc
commit
f9f9f7010c
2 changed files with 1 additions and 9 deletions
@ -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 |
FROM nginx as production-stage |
||||||
RUN mkdir /app |
RUN mkdir /app |
||||||
COPY --from=build-stage /app/dist /app |
COPY /public /app |
||||||
COPY nginx.conf /etc/nginx/nginx.conf |
COPY nginx.conf /etc/nginx/nginx.conf |
||||||
|
Loading…
Reference in new issue