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 WORKDIR /app
COPY ./package*.json ./ COPY ./backend/package*.json ./
RUN npm install RUN npm install
COPY . . COPY ./backend .
EXPOSE 2002 EXPOSE 2002

View file

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

View file

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

View file

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