1
0
mirror of https://github.com/gsi-upm/senpy synced 2024-12-22 04:58:12 +00:00
senpy/Dockerfile.template

26 lines
807 B
Docker
Raw Normal View History

from python:{{PYVERSION}}
MAINTAINER J. Fernando Sánchez <jf.sanchez@upm.es>
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/*
2022-05-23 09:35:11 +00:00
RUN mkdir -p /cache/ /senpy-plugins /data/
VOLUME /data/
2017-02-28 17:31:43 +00:00
ENV PIP_CACHE_DIR=/cache/ SENPY_DATA=/data
WORKDIR /usr/src/app
2018-04-25 07:36:29 +00:00
COPY test-requirements.txt requirements.txt extra-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
COPY . /usr/src/app/
2018-04-25 07:35:36 +00:00
RUN pip install --no-cache-dir --no-index --no-deps --editable .
2022-05-23 09:35:11 +00:00
ONBUILD COPY . /senpy-plugins/
ONBUILD RUN python -m senpy -i --no-run -f /senpy-plugins
2022-05-23 09:35:11 +00:00
ONBUILD WORKDIR /senpy-plugins/
2017-02-28 17:31:43 +00:00
ENTRYPOINT ["python", "-m", "senpy", "-f", "/senpy-plugins/", "--host", "0.0.0.0"]