chore: docker container layout aangepast
De mappen zitten een laag dieper in de docker container zodat de MenuBar.vue code niet moest aangepast worden
This commit is contained in:
parent
0995cba88c
commit
8890542f5e
2 changed files with 9 additions and 5 deletions
|
@ -6,7 +6,9 @@ COPY ./backend/package*.json ./
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
COPY ./backend .
|
COPY ./backend ./backend
|
||||||
|
|
||||||
|
WORKDIR /app/backend
|
||||||
|
|
||||||
EXPOSE 2002
|
EXPOSE 2002
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
# build stage
|
# build stage
|
||||||
FROM node:22 as build-stage
|
FROM node:22 AS build-stage
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./frontend/package*.json ./
|
COPY ./frontend/package*.json ./
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY ./frontend .
|
COPY ./frontend ./frontend
|
||||||
|
COPY ./assets ./assets
|
||||||
|
WORKDIR /app/frontend
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# production stage
|
# production stage
|
||||||
FROM nginx:stable as production-stage
|
FROM nginx:stable AS production-stage
|
||||||
COPY --from=build-stage /app/dist /usr/share/nginx/html
|
COPY --from=build-stage /app/frontend/dist /usr/share/nginx/html
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
Loading…
Add table
Add a link
Reference in a new issue