2018-09-12 11:31:43 +02:00
|
|
|
# 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
|
2022-06-05 09:24:54 +02:00
|
|
|
RUN dnf install -y git-core python3-markdown python3-setuptools python3-affine python3-shapely pstoedit && dnf clean all
|
2018-09-12 11:31:43 +02:00
|
|
|
|
|
|
|
# Get Boxes.py sources to /boxes
|
2019-07-02 15:24:18 +02:00
|
|
|
RUN git clone --depth 1 -b master https://github.com/florianfesti/boxes.git
|
2018-09-12 11:31:43 +02:00
|
|
|
|
|
|
|
# Internal port used
|
|
|
|
EXPOSE 8000
|
|
|
|
|
|
|
|
# Start the boxes web server on container start up
|
2020-05-18 22:20:06 +02:00
|
|
|
CMD ["/boxes/scripts/boxesserver"]
|