Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (10 sloc) 339 Bytes
FROM node:10-alpine
WORKDIR /opt/app
ENV PORT=80
RUN echo 'set -e' >> /boot.sh
# daemon for cron jobs
RUN echo 'crond' >> /boot.sh
# RUN echo 'crontab .openode.cron' >> /boot.sh
RUN echo 'npm install --production' >> /boot.sh
# npm start, make sure to have a start attribute in "scripts" in package.json
CMD sh /boot.sh && npm start
You can’t perform that action at this time.