You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not an expert in Docker containers but I was able to create a working version based on Ubuntu with a cronjob that runs every minute. You will need 3 files:
FROM ubuntu:18.04
WORKDIR /app
COPY pdf-bot/ /app/
COPY pdf-bot.config_docker.js /app
RUN mkdir /app/pdf-storage
RUN mkdir /app/pdf-storage/db
RUN mkdir /app/pdf-storage/pdf
RUN apt-get update
RUN apt-get install --yes curl
RUN curl --silent --location https://deb.nodesource.com/setup_4.x
RUN apt-get install --yes nodejs
RUN apt-get install --yes build-essential
RUN apt-get install --yes npm
RUN apt-get install --assume-yes chromium-browser
RUN npm install -g pm2
RUN apt-get -y install cron
COPY cronjob_shiftall /etc/cron.d/cronjob_shiftall
RUN chmod 0644 /etc/cron.d/cronjob_shiftall
RUN crontab /etc/cron.d/cronjob_shiftall
Any chance of a docker build to use. It would be great
The text was updated successfully, but these errors were encountered: