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:
35
docker/Dockerfile
Normal file
35
docker/Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user