From 59ba2a3516291e4fd5727501e8593b56d3fca0ac Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 12 Sep 2018 11:31:43 +0200 Subject: [PATCH] Simple, Fedora based Dockerfile --- scripts/Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scripts/Dockerfile diff --git a/scripts/Dockerfile b/scripts/Dockerfile new file mode 100644 index 0000000..560008d --- /dev/null +++ b/scripts/Dockerfile @@ -0,0 +1,26 @@ +# Simple Fedora based Docker container for running Boxes.py + +# Note that it downloads Boxes.py from GitHub and does not use your local copy +# of the repository. Adjust the git command below to get it from somewhere else + +# Build with +# docker build -t boxes.py . +# Run with +# docker run -ti -p 4000:8000 boxes.py +# to get the web interface at localhost:4000 +# First access may take a while as the Python files need to be complied + +# Use latest Fedora release as base +FROM fedora:latest + +# Install requirements +RUN dnf install -y python3-cairocffi git-core python3-markdown python3-lxml python3-setuptools pstoedit + +# Get Boxes.py sources to /boxes +RUN git clone https://github.com/florianfesti/boxes.git + +# Internal port used +EXPOSE 8000 + +# Start the boxes web server on container start up +CMD ["boxes/scripts/boxesserver"]