fix(docker): use absolute tsconfig path for api build
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:
+2
-2
@@ -15,8 +15,8 @@ RUN mkdir -p /home/node/.cache/node/corepack
|
|||||||
COPY packages/ packages/
|
COPY packages/ packages/
|
||||||
COPY src/ src/
|
COPY src/ src/
|
||||||
RUN pnpm --filter @groombook/types build && \
|
RUN pnpm --filter @groombook/types build && \
|
||||||
cd packages/db && pnpm build && cd ../.. && \
|
pnpm --filter @groombook/db build && \
|
||||||
pnpm build
|
/app/node_modules/.bin/tsc -p /app
|
||||||
|
|
||||||
# Runtime
|
# Runtime
|
||||||
FROM node:20-alpine AS runner
|
FROM node:20-alpine AS runner
|
||||||
|
|||||||
Reference in New Issue
Block a user