diff --git a/database/Dockerfile b/database/Dockerfile index 1ce9843f8..5413b891b 100644 --- a/database/Dockerfile +++ b/database/Dockerfile @@ -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" diff --git a/database/package.json b/database/package.json index cd1ad5f87..ed5cd2fe3 100644 --- a/database/package.json +++ b/database/package.json @@ -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": {