switched from drone to gitea actions
Some checks failed
Container Publish / on-success-skip (push) Has been skipped
Container Publish / build-image (arm64) (push) Successful in 2m1s
Container Publish / build-image (amd64) (push) Successful in 4m7s
Container Publish / update docker manifest (push) Successful in 10s
Vulnerability Scan / Daily Vulnerability Scan (arm64) (push) Failing after 36s
Vulnerability Scan / Daily Vulnerability Scan (amd64) (push) Failing after 2m1s
Some checks failed
Container Publish / on-success-skip (push) Has been skipped
Container Publish / build-image (arm64) (push) Successful in 2m1s
Container Publish / build-image (amd64) (push) Successful in 4m7s
Container Publish / update docker manifest (push) Successful in 10s
Vulnerability Scan / Daily Vulnerability Scan (arm64) (push) Failing after 36s
Vulnerability Scan / Daily Vulnerability Scan (amd64) (push) Failing after 2m1s
This commit is contained in:
20
src/Dockerfile
Normal file
20
src/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
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"]
|
||||
3
src/entrypoint.sh
Executable file
3
src/entrypoint.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/sbin/cron -f -L /var/log/cron.log
|
||||
8
src/logrotate-cron
Normal file
8
src/logrotate-cron
Normal file
@@ -0,0 +1,8 @@
|
||||
/var/log/cron.log {
|
||||
rotate 4
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
sharedscripts
|
||||
}
|
||||
Reference in New Issue
Block a user