mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix database docker
This commit is contained in:
parent
ed5bf96939
commit
217eb8ce39
@ -55,8 +55,8 @@ ENV PATH="/root/.bun/bin:${PATH}"
|
||||
##################################################################################
|
||||
FROM bun-base as installer
|
||||
|
||||
COPY --chown=app:app ./database .
|
||||
RUN bun install --production --no-cache --frozen-lockfile
|
||||
COPY --chown=app:app . .
|
||||
RUN bun install --filter database --production --no-cache --frozen-lockfile
|
||||
|
||||
##################################################################################
|
||||
# Build ##########################################################################
|
||||
@ -64,7 +64,8 @@ RUN bun install --production --no-cache --frozen-lockfile
|
||||
FROM installer as build
|
||||
|
||||
RUN bun install --no-cache --frozen-lockfile \
|
||||
&& yarn build && yarn typecheck
|
||||
&& cd shared && yarn build \
|
||||
&& cd ../database && yarn build && yarn typecheck
|
||||
|
||||
##################################################################################
|
||||
# PRODUCTION IMAGE ###############################################################
|
||||
@ -82,7 +83,6 @@ COPY --chown=app:app --from=installer ${DOCKER_WORKDIR}/tsconfig.json ./tsconfig
|
||||
##################################################################################
|
||||
FROM production as up
|
||||
|
||||
|
||||
# Run command
|
||||
CMD /bin/sh -c "yarn up"
|
||||
|
||||
|
||||
@ -44,7 +44,6 @@
|
||||
"ts-jest": "27.0.5",
|
||||
"ts-node": "^10.9.2",
|
||||
"typescript": "^4.9.5",
|
||||
"uuid": "^8.3.2",
|
||||
"vitest": "^3.2.4"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user