diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..05501c8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Use latest Python Slim +FROM python:slim + +LABEL maintainer="docker@profouzors.fr" + +# Get Boxes.py sources to /boxes +ARG BUILD_BRANCH=master +ARG BUILD_REPO=https://git.profouzors.net/Profouzors/boxespy.git +RUN apt-get -y update && apt-get install -y --no-install-recommends git && apt-get purge -y --auto-remove +RUN git clone --depth 1 -b ${BUILD_BRANCH} ${BUILD_REPO} && python3 -m pip install -r ./boxes/requirements.txt +RUN chmod +x /boxes/scripts/boxesserver + +# Internal port used +EXPOSE 8000 + +# Start the boxes web server on container start up +CMD ["/boxes/scripts/boxesserver"] \ No newline at end of file