diff --git a/contrib/docker/Dockerfile b/contrib/docker/Dockerfile new file mode 100644 index 0000000..3d68f6c --- /dev/null +++ b/contrib/docker/Dockerfile @@ -0,0 +1,21 @@ +FROM debian:stretch +LABEL maintainer="Christer Waren/CWINFO " + +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"]