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
|
|
|
|
2018-01-07 23:46:37 +00:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
libblas-dev liblapack-dev liblapacke-dev gfortran \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2018-01-07 23:59:48 +00:00
|
|
|
RUN pip install --no-cache-dir --upgrade numpy scipy scikit-learn
|
2018-01-07 23:46:37 +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/
|
2018-04-25 07:35:36 +00:00
|
|
|
RUN pip install --no-cache-dir -r test-requirements.txt -r requirements.txt -r extra-requirements.txt
|
2017-02-27 11:14:39 +00:00
|
|
|
COPY . /usr/src/app/
|
2018-04-25 07:35:36 +00:00
|
|
|
RUN pip install --no-cache-dir --no-index --no-deps --editable .
|
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"]
|