fix: update Dockerfile for production build
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
FROM node:20-slim
|
||||
FROM node:22-slim
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build:client
|
||||
RUN npm run build
|
||||
ENV PORT=3000
|
||||
EXPOSE 3000
|
||||
CMD ["npx", "tsx", "src/server/index.ts"]
|
||||
CMD ["node", "dist/server/index.js"]
|
||||
|
||||
Reference in New Issue
Block a user