- allowImportingTsExtensions: true + noEmit: true in tsconfig - build script runs tsc --noEmit (type-check only) - Dockerfile simplified to single stage using tsx at runtime (no tsc compilation needed; tsx handles .ts imports natively) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
302 B
Docker
20 lines
302 B
Docker
FROM node:22-alpine
|
|
|
|
# Install native build tools for bcrypt
|
|
RUN apk add --no-cache python3 make g++
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
|
|
COPY tsconfig.json ./
|
|
COPY src ./src
|
|
COPY public ./public
|
|
|
|
RUN mkdir -p /app/data/uploads
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["node", "--import", "tsx", "src/index.ts"]
|