Propably working Dockerfile.

This commit is contained in:
YuruC3
2025-05-11 15:08:26 +02:00
parent 62562b6060
commit 1026bd59d4
11 changed files with 134 additions and 97 deletions

View File

@@ -7,21 +7,22 @@ RUN apk update && \
apk add python3 py3-pip git
# inotify-tools
RUN mkdir /etc/debmirror
RUN mkdir /etc/debmirror && \
touch /etc/debmirror/MirrorListV6 && \
touch /etc/debmirror/MirrorListV4
WORKDIR /etc/debmirror/
COPY ./mainDocker.py /etc/debmirror/
COPY ./requirements.txt /etc/debmirror/
COPY mainDocker.py /etc/debmirror/
COPY whatDomain.py /etc/debmirror/
COPY requirements.txt /etc/debmirror/
RUN python3 -m venv venv && \
venv/bin/python3 -m pip install --upgrade pip && \
venv/bin/pip3 install -r requirements.txt
COPY ./cron-jobs /etc/crontabs/
COPY ./gitPush.sh /etc/crontabs/
COPY cron-jobs /etc/crontabs/
COPY gitPush.sh /etc/crontabs/
RUN chmod +x /etc/crontabs/gitPush.sh
RUN git clone https://tea.shupogaki.org/YuruC3/Debain-repos
CMD ["/usr/sbin/crond"]