fix dockerfile

This commit is contained in:
Willem Serruys
2026-08-19 18:51:54 +02:00
parent 4fda42504f
commit 22af3312ba

View File

@@ -6,14 +6,8 @@ COPY package.json ./
COPY backend/package.json backend/package.json COPY backend/package.json backend/package.json
COPY frontend/package.json frontend/package.json COPY frontend/package.json frontend/package.json
WORKDIR /repo/backend
RUN npm install RUN npm install
WORKDIR /repo/frontend
RUN npm install
WORKDIR /repo
COPY backend backend COPY backend backend
COPY frontend frontend COPY frontend frontend
RUN npm run build RUN npm run build
@@ -25,7 +19,6 @@ ENV NODE_ENV=production
COPY --from=build /repo/package.json ./package.json COPY --from=build /repo/package.json ./package.json
COPY --from=build /repo/backend/package.json ./backend/package.json COPY --from=build /repo/backend/package.json ./backend/package.json
COPY --from=build /repo/node_modules ./node_modules COPY --from=build /repo/node_modules ./node_modules
COPY --from=build /repo/backend/node_modules ./backend/node_modules
COPY --from=build /repo/backend/dist ./backend/dist COPY --from=build /repo/backend/dist ./backend/dist
COPY --from=build /repo/frontend/dist ./backend/dist/public COPY --from=build /repo/frontend/dist ./backend/dist/public