ALL OF IT
This commit is contained in:
29
Dockerfile
Normal file
29
Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
RUN apk update && apk upgrade
|
||||
|
||||
WORKDIR /opt/app
|
||||
|
||||
COPY ./email.html /opt/app/
|
||||
|
||||
COPY ./jobChecker.js /opt/app/
|
||||
|
||||
COPY package.json /opt/app/
|
||||
|
||||
COPY package-lock.json /opt/app/
|
||||
|
||||
RUN npm install
|
||||
|
||||
#COPY ./crontab /etc/cron.d/crontab
|
||||
|
||||
#RUN chmod 0644 /etc/cron.d/crontab
|
||||
|
||||
#RUN /usr/bin/crontab /etc/cron.d/crontab
|
||||
|
||||
#RUN apk add sudo bash
|
||||
|
||||
RUN touch /var/log/cron.log
|
||||
|
||||
#CMD bash -c "crond -f -d 8"
|
||||
|
||||
CMD node jobChecker.js
|
Reference in New Issue
Block a user