boxespy/Dockerfile

17 lines
584 B
Docker
Raw Normal View History

2023-08-09 17:32:28 +02:00
# 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"]