mirror of
https://github.com/gsi-upm/senpy
synced 2024-12-22 13:08:13 +00:00
b4ca5f4a7c
* Added interactive debugging * Better exception logging * More tests for errors * Added ONBUILD to dockerfile Now creating new images based on senpy's is as easy as: ```from senpy:<version>```. This will automatically mount the code to /senpy-plugins and install all dependencies * Added /data as a VOLUME * Added `--use-wheel` to pip install both on the image and in the auto-install function. * Closes #9 Break compatibilitity: * Removed ability to (de)activate plugins through the web
21 lines
456 B
Docker
21 lines
456 B
Docker
from python:{{PYVERSION}}
|
|
|
|
RUN mkdir /cache/
|
|
ENV PIP_CACHE_DIR=/cache/
|
|
|
|
WORKDIR /usr/src/app
|
|
ADD requirements.txt /usr/src/app/
|
|
RUN pip install --use-wheel -r requirements.txt
|
|
ADD . /usr/src/app/
|
|
RUN pip install .
|
|
|
|
|
|
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"] |