fix database docker

This commit is contained in:
einhornimmond 2025-06-21 15:19:55 +02:00
parent ed5bf96939
commit 217eb8ce39
2 changed files with 4 additions and 5 deletions

View File

@ -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"

View File

@ -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": {