Files
conversation-layer/conversation-layer-agent/Dockerfile
2025-06-05 00:10:10 -06:00

18 lines
364 B
Docker

# ---------- Build stage ----------
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# ---------- Production stage ----------
FROM node:18-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"]