From cadc6ec2d8920715e38be89c6a694e6f5199e289 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Fri, 26 Jan 2018 13:11:17 +0100 Subject: [PATCH] Docker file --- Dockerfile | 27 +++++++++++++++++++++++++++ run-docker.sh | 5 +++++ 2 files changed, 32 insertions(+) create mode 100644 Dockerfile create mode 100644 run-docker.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b80c579 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,27 @@ +FROM alpine +LABEL \ + maintainer="Davide Alberani " + +EXPOSE 3210 + +RUN \ + apk add --update \ + git \ + py3-lxml \ + py3-pip \ + py3-requests \ + py3-sqlalchemy \ + py3-tornado \ + && pip3 install apscheduler \ + && rm -rf /var/cache/apk/* + +VOLUME /diffido/conf /diffido/storage + +COPY diffido.py /diffido/ +COPY dist /diffido/dist/ +COPY ssl /diffido/ssl/ + +WORKDIR /diffido/ + +ENTRYPOINT ["./diffido.py"] + diff --git a/run-docker.sh b/run-docker.sh new file mode 100644 index 0000000..43a770b --- /dev/null +++ b/run-docker.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +docker build -t davidealberani/diffido . +docker run --rm -it -v `pwd`/conf:/diffido/conf -v `pwd`/storage:/diffido/storage -p 3210:3210 davidealberani/diffido --debug +