Files
csbot-prototype/Dockerfile
T
2026-07-31 14:42:26 +00:00

16 lines
268 B
Docker

FROM node:20-slim AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
FROM node:20-slim
WORKDIR /app
ENV PORT=3000
EXPOSE 3000
COPY package*.json ./
RUN npm install --omit=dev
COPY --from=build /app/dist ./dist
CMD ["npm", "start"]