5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-23 23:21:37 +00:00
yggdrasil-map/contrib/docker/Dockerfile

24 lines
682 B
Docker
Raw Normal View History

2020-08-16 10:23:30 +00:00
FROM debian:buster
2018-12-22 08:01:03 +00:00
LABEL maintainer="Christer Waren/CWINFO <christer.waren@cwinfo.org>"
2019-01-22 01:02:38 +00:00
ENV HOST localhost
ENV PORT 3000
2018-12-22 08:01:03 +00:00
WORKDIR /src
RUN apt-get update && \
2020-08-16 10:23:30 +00:00
apt-get install -y git wget python-flask python-flup python-mysqldb python-pygraphviz python-networkx cron && \
2018-12-22 08:01:03 +00:00
apt-get clean
2020-08-16 10:23:30 +00:00
RUN git clone -b crawler https://github.com/Arceliar/yggdrasil-map.git yggdrasil-map
2018-12-31 05:55:37 +00:00
2019-01-22 00:09:09 +00:00
COPY web_config.cfg /src/yggdrasil-map/web/web_config.cfg
2020-08-16 10:23:30 +00:00
#COPY updateGraph.py /src/yggdrasil-map/web/updateGraph.py
2019-01-22 00:09:18 +00:00
2018-12-22 08:01:03 +00:00
COPY entrypoint.sh /usr/bin/entrypoint.sh
2018-12-27 07:15:33 +00:00
RUN chmod 0555 /usr/bin/entrypoint.sh
2018-12-22 08:01:03 +00:00
COPY crontab /etc/cron.d/jobs
RUN chmod 0644 /etc/cron.d/jobs
2020-08-16 10:23:30 +00:00
ENTRYPOINT [ "/usr/bin/entrypoint.sh"]