feat/refacto #1

Merged
k3nny merged 5 commits from feat/refacto into master 2025-04-19 00:04:40 +02:00
2 changed files with 14 additions and 12 deletions
Showing only changes of commit e7d3e1140c - Show all commits

View File

@ -1,14 +1,16 @@
FROM python:3.13-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /opt/tisbackup
COPY entrypoint.sh /entrypoint.sh
COPY . /opt/tisbackup
RUN apt-get update \
RUN apt-get update && apt-get upgrade -y \
&& apt-get install --no-install-recommends -y rsync ssh cron \
&& rm -rf /var/lib/apt/lists/* \
&& /usr/local/bin/python3.13 -m pip install --no-cache-dir -r requirements.txt \
#&& /usr/local/bin/python3.13 -m pip install --no-cache-dir -r requirements.txt \
&& uv sync \
&& mkdir -p /var/spool/cron/crontabs \
&& echo '59 03 * * * root /bin/bash /opt/tisbackup/backup.sh' > /etc/crontab \
&& echo '' >> /etc/crontab \

View File

@ -1,10 +1,10 @@
six
requests
paramiko
pexpect
flask
simplejson
huey
iniparse
redis
peewee
flask==3.1.0
huey==2.5.3
iniparse==0.5
paramiko==3.5.1
peewee==3.17.9
pexpect==4.9.0
redis==5.2.1
requests==2.32.3
simplejson==3.20.1
six==1.17.0