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
|
FROM base as build
|
||||||
|
|
||||||
# Copy everything
|
# Copy everything
|
||||||
COPY . .
|
COPY ./backend ./
|
||||||
# Also copy external enities from database
|
# Also copy external enities from database
|
||||||
COPY ../database/entity/ ../database/entity/
|
COPY ./database/entity/ ../database/entity/
|
||||||
# npm install
|
# npm install
|
||||||
RUN yarn install --production=false --frozen-lockfile --non-interactive
|
RUN yarn install --production=false --frozen-lockfile --non-interactive
|
||||||
# npm build
|
# npm build
|
||||||
|
|||||||
@ -54,7 +54,10 @@ services:
|
|||||||
backend:
|
backend:
|
||||||
image: gradido/backend:latest
|
image: gradido/backend:latest
|
||||||
build:
|
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
|
target: production
|
||||||
networks:
|
networks:
|
||||||
- internal-net
|
- internal-net
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user