2017-02-08 20:55:17 +00:00
|
|
|
from python:{{PYVERSION}}
|
2016-09-20 18:55:59 +00:00
|
|
|
|
2017-02-27 11:14:39 +00:00
|
|
|
MAINTAINER J. Fernando Sánchez <jf.sanchez@upm.es>
|
2016-09-21 18:27:30 +00:00
|
|
|
|
2017-02-27 11:14:39 +00:00
|
|
|
RUN mkdir /cache/ /senpy-plugins /data/
|
2017-02-17 00:53:02 +00:00
|
|
|
|
|
|
|
VOLUME /data/
|
|
|
|
|
2017-02-28 17:31:43 +00:00
|
|
|
ENV PIP_CACHE_DIR=/cache/ SENPY_DATA=/data
|
2017-02-17 00:53:02 +00:00
|
|
|
|
2017-02-27 11:14:39 +00:00
|
|
|
ONBUILD COPY . /senpy-plugins/
|
2017-02-17 00:53:02 +00:00
|
|
|
ONBUILD RUN python -m senpy --only-install -f /senpy-plugins
|
2017-02-27 11:14:39 +00:00
|
|
|
ONBUILD WORKDIR /senpy-plugins/
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY test-requirements.txt requirements.txt /usr/src/app/
|
|
|
|
RUN pip install --use-wheel -r test-requirements.txt -r requirements.txt
|
|
|
|
COPY . /usr/src/app/
|
|
|
|
RUN pip install --no-deps --no-index .
|
2017-02-17 00:53:02 +00:00
|
|
|
|
2017-02-28 17:31:43 +00:00
|
|
|
ENTRYPOINT ["python", "-m", "senpy", "-f", "/senpy-plugins/", "--host", "0.0.0.0"]
|