Files
planilla/conversation-layer-agent/Dockerfile
josedario87 950404dd85
Some checks failed
build-and-deploy / filter (push) Successful in 1s
build-and-deploy / build (push) Failing after 5s
build-and-deploy / deploy (push) Has been skipped
creado planilla-agent
2025-06-05 15:40:53 -06:00

18 lines
364 B
Docker

# ---------- Build stage ----------
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# ---------- Production stage ----------
FROM node:20-alpine
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY package*.json ./
RUN npm install --production
ENV PORT=8001
EXPOSE 8001
CMD ["node", "dist/index.js"]