From 3424e2fbdc7e2c14e83a4b302804577e7ffd9000 Mon Sep 17 00:00:00 2001 From: "Profouzors (LE)" Date: Wed, 9 Aug 2023 17:32:28 +0200 Subject: [PATCH] AJout Dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile 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