Forgot to make docker folder visible. bruh

This commit is contained in:
YuruC3
2025-05-11 14:06:58 +02:00
parent 291e0a4949
commit 0d5db658ef
8 changed files with 207 additions and 1 deletions

27
docker/Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM alpine:latest
# https://docs.docker.com/reference/dockerfile/#environment-replacement
ENV DEBMIRRORURL="https://www.debian.org/mirror/list"
RUN apk update && \
apk add python3 py3-pip git
# inotify-tools
RUN mkdir /etc/debmirror
WORKDIR /etc/debmirror/
COPY ./mainDocker.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/
RUN chmod +x /etc/crontabs/gitPush.sh
RUN git clone https://tea.shupogaki.org/YuruC3/Debain-repos
CMD ["/usr/sbin/crond"]