chore: update docker layout

Dockerfiles in root gezet zodat ze ook aan bestanden daarin kunnen
This commit is contained in:
Timo De Meyst 2025-03-07 17:19:30 +01:00
parent 71f6b1b3cb
commit 0995cba88c
5 changed files with 8 additions and 13 deletions

View file

@ -2,11 +2,11 @@ FROM node:22
WORKDIR /app
COPY ./package*.json ./
COPY ./backend/package*.json ./
RUN npm install
COPY . .
COPY ./backend .
EXPOSE 2002

View file

@ -1,13 +1,15 @@
services:
web:
build: ./frontend
build:
dockerfile: ./frontend.Dockerfile
depends_on:
- api
ports:
- '443:443'
- '80:80'
api:
build: ./backend
build:
dockerfile: ./backend.Dockerfile
ports:
- '2002:2002'
db:

View file

@ -1,9 +1,9 @@
# build stage
FROM node:22 as build-stage
WORKDIR /app
COPY package*.json ./
COPY ./frontend/package*.json ./
RUN npm install
COPY . .
COPY ./frontend .
RUN npm run build
# production stage

View file

@ -1,7 +0,0 @@
**/node_modules/
**/dist
.git
npm-debug.log
.coverage
.coverage.*
.env