Files
planilla/worker/Dockerfile
josedario87 b4c1653d90
All checks were successful
build-and-push / build (push) Successful in 27s
build-and-push / deploy (push) Successful in 14s
el deploy es un poco complicado
2025-05-14 18:58:37 -06:00

21 lines
403 B
Docker

FROM node:24-slim
# instalar cron
RUN apt-get update && \
apt-get install -y cron && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
# copiar todo el código y scripts cron
COPY . .
# copiar scripts cron exactamente como vienen
RUN cp -r cron /etc/cron.d && \
find /etc/cron.d -type f -exec chmod +x {} \;
CMD sh -c "cron && node cron-worker.js"