Skip to content
Snippets Groups Projects

K8s deploy

Merged Remi PLANEL requested to merge k8s-deploy into dev
2 files
+ 13
8
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -43,11 +43,11 @@ FROM node:19.5-bullseye-slim as generate
WORKDIR /usr/src/app
COPY --from=install /usr/src/app ./
COPY . /usr/src/app
RUN npm run generate
RUN NUXT_APP_BASE_URL=/wiki/ npm run generate
### STAGE: NGINX ###
FROM nginxinc/nginx-unprivileged:1.25
# RUN rm -rf /usr/share/nginx/html/*
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=generate /usr/src/app/.output/public /usr/share/nginx/html
COPY --from=generate /usr/src/app/.output/public /etc/nginx/html
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
Loading