fix: update Dockerfile for production build

This commit is contained in:
2026-03-14 21:31:02 -03:00
parent 62211c88d9
commit 424b75389f

View File

@@ -1,9 +1,9 @@
FROM node:20-slim FROM node:22-slim
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm ci
COPY . . COPY . .
RUN npm run build:client RUN npm run build
ENV PORT=3000 ENV PORT=3000
EXPOSE 3000 EXPOSE 3000
CMD ["npx", "tsx", "src/server/index.ts"] CMD ["node", "dist/server/index.js"]