Dockerfile-3.5 446 Bytes
Newer Older
J. Fernando Sánchez's avatar
J. Fernando Sánchez committed
1
FROM python:3.5
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 10 11
ADD . /usr/src/app/
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"]