fix: install typescript for next.config.ts transpilation in Dockerfile

This commit is contained in:
kevin-asprec
2026-04-14 06:05:30 +08:00
parent 3f195e1765
commit dcadef92b6

View File

@@ -5,7 +5,7 @@ COPY packages/shared/package.json ./packages/shared/
RUN npm install
COPY packages/shared/ ./packages/shared/
COPY . .
RUN npx next build
RUN npm install --save-dev typescript && npx next build
FROM node:20-alpine AS runner
WORKDIR /app