Merge pull request #295 from SELab-2/chore/docker-optimalization
chore: `**/tests/` niet in docker container
This commit is contained in:
		
						commit
						716f63842f
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		|  | @ -1,3 +1,5 @@ | ||||||
|  | #syntax=docker/dockerfile:1.7-labs | ||||||
|  | 
 | ||||||
| FROM node:22 AS build-stage | FROM node:22 AS build-stage | ||||||
| 
 | 
 | ||||||
| WORKDIR /app/dwengo | WORKDIR /app/dwengo | ||||||
|  | @ -17,7 +19,7 @@ RUN npm install --silent | ||||||
| # Root tsconfig.json | # Root tsconfig.json | ||||||
| COPY tsconfig.json tsconfig.build.json ./ | COPY tsconfig.json tsconfig.build.json ./ | ||||||
| 
 | 
 | ||||||
| COPY backend ./backend | COPY --exclude=backend/tests/ backend ./backend | ||||||
| COPY common ./common | COPY common ./common | ||||||
| COPY docs ./docs | COPY docs ./docs | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,3 +1,5 @@ | ||||||
|  | #syntax=docker/dockerfile:1.7-labs | ||||||
|  | 
 | ||||||
| FROM node:22 AS build-stage | FROM node:22 AS build-stage | ||||||
| 
 | 
 | ||||||
| # install simple http server for serving static content | # install simple http server for serving static content | ||||||
|  | @ -26,7 +28,7 @@ RUN npm run build --workspace=common | ||||||
| 
 | 
 | ||||||
| WORKDIR /app/dwengo/frontend | WORKDIR /app/dwengo/frontend | ||||||
| 
 | 
 | ||||||
| COPY frontend ./ | COPY --exclude=frontend/tests/ frontend ./ | ||||||
| 
 | 
 | ||||||
| RUN npx vite build | RUN npx vite build | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Reference in a new issue
	
	 Timo De Meyst
						Timo De Meyst