Working docker-compose
This commit is contained in:
@@ -7,11 +7,15 @@ RUN apk update && \
|
||||
apk add python3 py3-pip git
|
||||
# inotify-tools
|
||||
|
||||
RUN mkdir /etc/debmirror && \
|
||||
touch /etc/debmirror/MirrorListV6 && \
|
||||
touch /etc/debmirror/MirrorListV4
|
||||
RUN mkdir /etc/debmirror
|
||||
WORKDIR /etc/debmirror/
|
||||
|
||||
RUN git clone https://tea.shupogaki.org/YuruC3/Debain-repos && \
|
||||
ln -s /etc/debmirror/Debain-repos/MirrorListV4 /etc/debmirror/MirrorListV4 && \
|
||||
ln -s /etc/debmirror/Debain-repos/MirrorListV6 /etc/debmirror/MirrorListV6
|
||||
# RUN touch /etc/debmirror/MirrorListV6 && \
|
||||
# touch /etc/debmirror/MirrorListV4
|
||||
|
||||
COPY mainDocker.py /etc/debmirror/
|
||||
COPY whatDomain.py /etc/debmirror/
|
||||
COPY requirements.txt /etc/debmirror/
|
||||
@@ -21,8 +25,11 @@ RUN python3 -m venv venv && \
|
||||
venv/bin/pip3 install -r requirements.txt
|
||||
|
||||
COPY cron-jobs /etc/crontabs/
|
||||
COPY gitPush.sh /etc/crontabs/
|
||||
RUN chmod 0644 /etc/crontabs/cron-jobs && \
|
||||
crontab /etc/crontabs/cron-jobs
|
||||
|
||||
RUN chmod +x /etc/crontabs/gitPush.sh
|
||||
COPY gitPush.sh /etc/debmirror/
|
||||
|
||||
CMD ["/usr/sbin/crond"]
|
||||
RUN chmod +x /etc/debmirror/gitPush.sh
|
||||
|
||||
CMD ["/usr/sbin/crond", "-f"]
|
||||
|
||||
Reference in New Issue
Block a user