Fix: Use tsx for server in Docker
This commit is contained in:
@@ -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 . .
|
||||||
|
|
||||||
|
|||||||
@@ -10,12 +10,11 @@
|
|||||||
"dev": "concurrently \"vite\" \"tsx watch src/server/index.ts\"",
|
"dev": "concurrently \"vite\" \"tsx watch src/server/index.ts\"",
|
||||||
"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",
|
||||||
|
|||||||
Reference in New Issue
Block a user