few fixes and lint compatible

This commit is contained in:
2024-11-29 00:48:59 +01:00
parent 8479c378ee
commit e7e98d0b47
5 changed files with 357 additions and 306 deletions
+5 -7
View File
@@ -5,13 +5,11 @@ WORKDIR /opt/tisbackup
COPY entrypoint.sh /entrypoint.sh
COPY . /opt/tisbackup
RUN apt update \
&& apt install --no-install-recommends -y rsync ssh cron \
&& rm -rf /var/lib/apt/lists/*
RUN /usr/local/bin/python3.12 -m pip install --no-cache-dir -r requirements.txt
RUN mkdir -p /var/spool/cron/crontabs \
RUN apt-get update \
&& apt-get install --no-install-recommends -y rsync ssh cron \
&& rm -rf /var/lib/apt/lists/* \
&& /usr/local/bin/python3.12 -m pip install --no-cache-dir -r requirements.txt \
&& mkdir -p /var/spool/cron/crontabs \
&& echo '59 03 * * * root /bin/bash /opt/tisbackup/backup.sh' > /etc/crontab \
&& echo '' >> /etc/crontab \
&& crontab /etc/crontab