AJout Dockerfile

This commit is contained in:
Profouzors (LE) 2023-08-09 17:32:28 +02:00
parent 63ff58544d
commit 3424e2fbdc
1 changed files with 17 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -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"]