Fix: Use tsx for server in Docker

This commit is contained in:
2026-03-30 21:38:36 +00:00
parent 14aa2dec09
commit 87a87ae228
2 changed files with 4 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ FROM node:22-alpine
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm ci --only=production RUN npm install
COPY . . COPY . .

View File

@@ -11,11 +11,10 @@
"build:client": "vite build", "build:client": "vite build",
"build:server": "tsc -p tsconfig.server.json", "build:server": "tsc -p tsconfig.server.json",
"prebuild": "npm install", "prebuild": "npm install",
"prebuild": "npm ci", "build": "npm run build:client",
"build": "npm run build:client && npm run build:server",
"lint": "eslint .", "lint": "eslint .",
"preview": "vite preview", "preview": "vite preview",
"start": "node dist/server/index.js" "start": "tsx src/server/index.ts"
}, },
"dependencies": { "dependencies": {
"tsx": "^4.21.0", "tsx": "^4.21.0",