mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-22 00:02:28 +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
18 lines
403 B
Groff
18 lines
403 B
Groff
from python:3.4-slim
|
|
|
|
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 --use-wheel .
|
|
|
|
|
|
VOLUME /data/
|
|
|
|
RUN mkdir /senpy-plugins/
|
|
|
|
WORKDIR /senpy-plugins/
|
|
ONBUILD ADD . /senpy-plugins/
|
|
ONBUILD RUN python -m senpy -f /senpy-plugins
|
|
|
|
ENTRYPOINT ["python", "-m", "senpy", "-f", "/senpy-plugins/", "--host", "0.0.0.0"] |