docker-python-runner/docker/Dockerfile

15 lines
355 B
Docker
Raw Normal View History

2022-09-20 09:09:47 +00:00
FROM alpine:3.16
2022-09-20 09:23:37 +00:00
COPY logrotate-cron /etc/logrotate.d
2022-09-20 10:53:35 +00:00
COPY entrypoint.sh /
2022-09-20 09:23:37 +00:00
2022-09-20 09:09:47 +00:00
RUN \
2022-09-20 10:18:20 +00:00
mkdir /scripts /crontabs && \
2022-09-21 06:38:29 +00:00
apk -U add python3 py3-pip py3-requests py3-dateutil py3-beautifulsoup4 logrotate tzdata && \
2022-09-20 09:09:47 +00:00
pip3 install fdb mysql-connector-python==8.0.29 telepot caldav
2022-09-20 10:53:35 +00:00
ENV CRONTAB=""
2022-09-21 06:38:29 +00:00
ENV TZ="Europe/Rome"
2022-09-20 10:53:35 +00:00
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]