mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
reshape build context to fix out of context error when copying database entities
This commit is contained in:
parent
8228422d6f
commit
1a91f6191c
@ -61,9 +61,9 @@ CMD /bin/sh -c "yarn install && yarn run dev"
|
||||
FROM base as build
|
||||
|
||||
# Copy everything
|
||||
COPY . .
|
||||
COPY ./backend ./
|
||||
# Also copy external enities from database
|
||||
COPY ../database/entity/ ../database/entity/
|
||||
COPY ./database/entity/ ../database/entity/
|
||||
# npm install
|
||||
RUN yarn install --production=false --frozen-lockfile --non-interactive
|
||||
# npm build
|
||||
|
||||
@ -54,7 +54,10 @@ services:
|
||||
backend:
|
||||
image: gradido/backend:latest
|
||||
build:
|
||||
context: ./backend
|
||||
# since we have to include the entities from ./database we cannot define the context as ./backend
|
||||
# this might blow build image size to the moon ?!
|
||||
context: ./
|
||||
dockerfile: ./backend/Dockerfile
|
||||
target: production
|
||||
networks:
|
||||
- internal-net
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user