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

This commit is contained in:
kevin-asprec
2026-04-14 06:05:36 +08:00
parent 8aaa1115ec
commit 7489bdef14

View File

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