dockerizar

This commit is contained in:
2023-03-09 10:49:16 +01:00
parent 60d295a5c5
commit 347d6ab147

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
# develop stage
FROM node:14.21.2-alpine as develop-stage
WORKDIR /app
COPY package*.json ./
RUN npm i -g @quasar/cli
COPY . .
# build stage
FROM develop-stage as build-stage
RUN yarn
RUN quasar build
# production stage
FROM nginx:1.17.5-alpine as production-stage
COPY --from=build-stage /app/dist/spa /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]