feat/refacto #1
@ -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 \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user