docker-python-runner/docker/Dockerfile
Paolo Asperti a569e48273
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
added bitwarden and migrated to debian
2022-10-20 23:30:03 +02:00

21 lines
675 B
Docker

FROM debian:bullseye-slim
COPY logrotate-cron /etc/logrotate.d
COPY entrypoint.sh /
RUN \
mkdir /scripts /crontabs && \
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
ENV CRONTAB=""
ENV TZ="Europe/Rome"
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]