Propably working Dockerfile.
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user