fix: dynamically link tsx from pnpm store for node --import resolution
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ COPY --from=base /app/packages/config/src ./packages/config/src
|
||||
COPY --from=base /app/packages/types/package.json ./packages/types/package.json
|
||||
COPY --from=base /app/packages/types/src ./packages/types/src
|
||||
|
||||
RUN ln -s /app/apps/api/node_modules/tsx /app/node_modules/tsx 2>/dev/null || true
|
||||
RUN TSX_DIR=$(find /app/node_modules/.pnpm -maxdepth 4 -path '*/node_modules/tsx/package.json' -exec dirname {} \; | head -1) && ln -s "$TSX_DIR" /app/node_modules/tsx 2>/dev/null || true
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
|
||||
Reference in New Issue
Block a user