fix(docker): use absolute tsconfig path for api build
CI / Lint & Typecheck (pull_request) Successful in 15s
CI / Test (pull_request) Successful in 21s
CI / Build & Push Docker Image (pull_request) Failing after 20s

When pnpm --filter runs the api package build, tsc cannot find the
tsconfig.json. Use an absolute path to avoid any ambiguity about the
working directory context.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
2026-05-20 12:49:56 +00:00
committed by Flea Flicker [agent]
parent c3c99ad6c4
commit fc82e24ead
+2 -2
View File
@@ -15,8 +15,8 @@ RUN mkdir -p /home/node/.cache/node/corepack
COPY packages/ packages/
COPY src/ src/
RUN pnpm --filter @groombook/types build && \
cd packages/db && pnpm build && cd ../.. && \
pnpm build
pnpm --filter @groombook/db build && \
/app/node_modules/.bin/tsc -p /app
# Runtime
FROM node:20-alpine AS runner