Move files to docker/ and fixes Dockerfile and entrypoint

This commit is contained in:
Sergi Delgado Segura
2020-06-08 23:28:50 +02:00
parent 2f3ee89bd9
commit 7da2933c48
3 changed files with 31 additions and 27 deletions

10
docker/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM python:3
ENV APP_PATH=/srv/python-teos
VOLUME ["~/.teos"]
WORKDIR /srv
ADD . /srv/python-teos
RUN mkdir ~/.teos && cd python-teos && pip install -r requirements.txt && python generate_keys.py -d ~/.teos
ENV PYTHONPATH=$APP_PATH
WORKDIR /srv/python-teos
EXPOSE 9814/tcp
ENTRYPOINT [ "/srv/python-teos/docker/entrypoint.sh" ]