chore: update docker layout
Dockerfiles in root gezet zodat ze ook aan bestanden daarin kunnen
This commit is contained in:
parent
71f6b1b3cb
commit
0995cba88c
5 changed files with 8 additions and 13 deletions
|
@ -2,11 +2,11 @@ FROM node:22
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./package*.json ./
|
||||
COPY ./backend/package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
COPY ./backend .
|
||||
|
||||
EXPOSE 2002
|
||||
|
|
@ -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:
|
||||
|
|
|
@ -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
|
|
@ -1,7 +0,0 @@
|
|||
**/node_modules/
|
||||
**/dist
|
||||
.git
|
||||
npm-debug.log
|
||||
.coverage
|
||||
.coverage.*
|
||||
.env
|
Loading…
Add table
Add a link
Reference in a new issue