Dockerfile.template 456 Bytes
Newer Older
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
1
from python:{{PYVERSION}}
2

3
4
5
RUN mkdir /cache/
ENV PIP_CACHE_DIR=/cache/

6
7
WORKDIR /usr/src/app
ADD requirements.txt /usr/src/app/
8
RUN pip install --use-wheel -r requirements.txt
9
ADD . /usr/src/app/
10
11
RUN pip install .

12
13
14
15
16
17
18
19
20
21

VOLUME /data/

RUN mkdir /senpy-plugins/

WORKDIR /senpy-plugins/
ONBUILD ADD . /senpy-plugins/
ONBUILD RUN python -m senpy --only-install -f /senpy-plugins

ENTRYPOINT ["python", "-m", "senpy", "-f", "/senpy-plugins/", "--host", "0.0.0.0"]