informe-comercial-alfa/Dockerfile
2026-09-21 17:11:53 -06:00

13 lines
280 B
Docker

FROM node:22-alpine
WORKDIR /app
# native modules on Alpine (musl) must be compiled
RUN apk add --no-cache python3 make g++
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3000
ENV NODE_ENV=production
ENV PORT=3000
ENV HOSTNAME=0.0.0.0
CMD ["npm", "start"]