Zmeny potrebne pro deploy na poletani.cz

This commit is contained in:
Michal Kváček
2023-08-24 13:37:14 +02:00
parent 19b078b43c
commit ccc8ff22e2
9 changed files with 89 additions and 8 deletions
+8 -2
View File
@@ -8,11 +8,17 @@ COPY . .
# build stage
FROM develop-stage as build-stage
#ARG API_URL
#ENV VUE_API_URL $API_URL
RUN yarn --production=false
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
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;"]