Merge pull request #295 from SELab-2/chore/docker-optimalization

chore: `**/tests/` niet in docker container
This commit is contained in:
Timo De Meyst 2025-05-20 21:42:20 +02:00 committed by GitHub
commit 716f63842f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,5 @@
#syntax=docker/dockerfile:1.7-labs
FROM node:22 AS build-stage
WORKDIR /app/dwengo
@ -17,7 +19,7 @@ RUN npm install --silent
# Root tsconfig.json
COPY tsconfig.json tsconfig.build.json ./
COPY backend ./backend
COPY --exclude=backend/tests/ backend ./backend
COPY common ./common
COPY docs ./docs

View file

@ -1,3 +1,5 @@
#syntax=docker/dockerfile:1.7-labs
FROM node:22 AS build-stage
# install simple http server for serving static content
@ -26,7 +28,7 @@ RUN npm run build --workspace=common
WORKDIR /app/dwengo/frontend
COPY frontend ./
COPY --exclude=frontend/tests/ frontend ./
RUN npx vite build