bumachar-doc-chat / Dockerfile
senal88's picture
chore: deploy web_comercial from monorepo
933fa00 verified
raw
history blame contribute delete
605 Bytes
FROM node:22-alpine AS builder
WORKDIR /workspace
COPY apps/web_comercial ./apps/web_comercial
COPY packages/simulation-engine ./packages/simulation-engine
RUN npm ci --prefix apps/web_comercial
RUN npm --prefix apps/web_comercial run build
FROM node:22-alpine AS runner
WORKDIR /workspace
ENV NODE_ENV=production
ENV PORT=7860
ENV HOSTNAME=0.0.0.0
COPY --from=builder /workspace/apps/web_comercial ./apps/web_comercial
COPY --from=builder /workspace/packages/simulation-engine ./packages/simulation-engine
EXPOSE 7860
CMD ["sh", "-c", "cd apps/web_comercial && npm run start -- -H 0.0.0.0 -p 7860"]