28 lines
668 B
Docker
28 lines
668 B
Docker
![]() |
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"]
|