5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-24 21:21:35 +00:00

Create Dockerfile

This commit is contained in:
Christer Warén 2018-12-22 10:01:03 +02:00 committed by GitHub
parent 4a43785372
commit aa64834093
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

21
contrib/docker/Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM debian:stretch
LABEL maintainer="Christer Waren/CWINFO <christer.waren@cwinfo.org>"
WORKDIR /src
RUN apt-get update && \
apt-get install -y git python-flask python-flup python-mysqldb python-pygraphviz python-networkx cron && \
apt-get clean
RUN git clone https://github.com/Arceliar/yggdrasil-map.git && \
cd yggdrasil-map/web && \
cp web_config.example.cfg web_config.cfg
COPY entrypoint.sh /usr/bin/entrypoint.sh
COPY crontab /etc/cron.d/jobs
RUN chmod 0644 /etc/cron.d/jobs
ENTRYPOINT [ "/usr/bin/entrypoint.sh"]