1
0
mirror of https://github.com/tiyn/stud.ip-crawler.git synced 2025-10-09 17:38:02 +02:00

docker: added build and docker-compose

This commit is contained in:
TiynGER
2020-11-09 22:46:21 +01:00
parent 564a9ba977
commit 4eb313eb9a
4 changed files with 114 additions and 18 deletions

35
docker/Dockerfile Normal file
View File

@@ -0,0 +1,35 @@
FROM python
LABEL maintainer "TiynGER <mail@martenkante.eu>"
ENV USER admin
ENV PSWD admin
ENV URL admin
ENV HOST mysql
ENV INTERVAL 86400
ENV DB_USER root
ENV DB_PSWD root
RUN git clone https://github.com/tiyn/stud.ip-crawler /studip
WORKDIR /studip
RUN pip install -r src/requirements.txt
ADD run.sh .
RUN chmod +x run.sh
RUN chmod +x src/run.py
VOLUME /studip/src/data
WORKDIR /studip/src
CMD ["/studip/run.sh"]