docker-python-runner/docker/Dockerfile

21 lines
675 B
Docker
Raw Permalink Normal View History

2022-10-19 23:09:59 +00:00
FROM debian:bullseye-slim
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-10-19 23:09:59 +00:00
apt update && \
DEBIAN_FRONTEND=noninteractive apt -y upgrade && \
DEBIAN_FRONTEND=noninteractive apt -y install wget python3 python3-pip python3-dateutil python3-requests python3-bs4 logrotate unzip tzdata && \
pip3 install fdb mysql-connector-python==8.0.29 telepot caldav && \
wget -O /tmp/bw.zip 'https://vault.bitwarden.com/download/?app=cli&platform=linux' && \
unzip /tmp/bw.zip -d /usr/local/bin && \
chmod +x /usr/local/bin/bw && \
rm /tmp/bw.zip
2022-09-20 09:09:47 +00:00
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"]