Forgot to make docker folder visible. bruh
This commit is contained in:
27
docker/Dockerfile
Normal file
27
docker/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user