-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (15 loc) · 771 Bytes
/
Copy pathDockerfile
File metadata and controls
21 lines (15 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:alpine
MAINTAINER Rafa Muñoz rafa93m@gmail.com (@rafa93m)
RUN set -eux \
&& pip install pymongo \
&& pip install urllib3 \
&& pip install pytelegrambotapi
RUN mkdir /opt/openethereumpool
COPY openethereumpool /opt/openethereumpool
RUN chmod -R 644 /opt/openethereumpool
RUN echo "* * * * * python3 /opt/openethereumpool/checkWorkers.py" >> /etc/crontabs/root
RUN echo "* * * * * python3 /opt/openethereumpool/checkNewBlock.py" >> /etc/crontabs/root
RUN echo "* * * * * python3 /opt/openethereumpool/checkPayments.py" >> /etc/crontabs/root
WORKDIR /opt/openethereumpool
ENTRYPOINT ["/bin/sh", "/opt/openethereumpool/docker-entrypoint.sh"]
CMD ["python3","/opt/openethereumpool/bot-OpenEthereumPool.py"]