Zaklad ssr

This commit is contained in:
Michal Kváček
2023-11-14 16:20:01 +01:00
parent e65491e00b
commit 331ebbc4e4
19 changed files with 298 additions and 84 deletions
+9 -6
View File
@@ -13,12 +13,15 @@ FROM develop-stage as build-stage
#ENV VUE_API_URL $API_URL
RUN yarn --production=false
RUN quasar build
RUN quasar build -m ssr
# production stage
FROM nginx:1.25-alpine as production-stage
COPY conf/nginx.conf /etc/nginx/nginx.conf
COPY --from=build-stage /app/dist/spa /app/html
EXPOSE 80
#FROM nginx:1.25-alpine as production-stage
#COPY conf/nginx.conf /etc/nginx/nginx.conf
#COPY --from=build-stage /app/dist/spa /app/html
#EXPOSE 80
#
#CMD ["nginx", "-g", "daemon off;"]
FROM keymetrics/pm2:latest-alpine as production-stage
CMD ["nginx", "-g", "daemon off;"]