Docker file
This commit is contained in:
parent
b5a993634e
commit
cadc6ec2d8
2 changed files with 32 additions and 0 deletions
27
Dockerfile
Normal file
27
Dockerfile
Normal file
|
@ -0,0 +1,27 @@
|
|||
FROM alpine
|
||||
LABEL \
|
||||
maintainer="Davide Alberani <da@erlug.linux.it>"
|
||||
|
||||
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"]
|
||||
|
5
run-docker.sh
Normal file
5
run-docker.sh
Normal file
|
@ -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
|
||||
|
Loading…
Reference in a new issue