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 +