fix(tisbackup): using uv is good in Dockerfile maybe
This commit is contained in:
+4
-2
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user