Dockerfile-3.4 446 Bytes
Newer Older
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
1 2 3 4
from python:3.4

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

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/
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
10
RUN pip install .
11

12 13 14 15 16 17 18

VOLUME /data/

RUN mkdir /senpy-plugins/

WORKDIR /senpy-plugins/
ONBUILD ADD . /senpy-plugins/
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
19
ONBUILD RUN python -m senpy --only-install -f /senpy-plugins
20 21

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