senal88's picture
chore: deploy web_comercial from monorepo
cfb5074 verified
raw
history blame contribute delete
876 Bytes
FROM node:22-bookworm-slim 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-bookworm-slim AS runner
WORKDIR /workspace
ENV NODE_ENV=production
ENV PORT=7860
ENV HOSTNAME=0.0.0.0
# Install Dev Mode requirements
RUN apt-get update && \
apt-get install -y \
bash \
git git-lfs \
wget curl procps \
htop vim nano openssh-client && \
rm -rf /var/lib/apt/lists/*
COPY --from=builder /workspace/apps/web_comercial ./apps/web_comercial
COPY --from=builder /workspace/packages/simulation-engine ./packages/simulation-engine
RUN chown -R 1000:1000 /workspace
USER 1000
EXPOSE 7860
CMD ["sh", "-c", "cd apps/web_comercial && npm run start -- -H 0.0.0.0 -p 7860"]