AJout Dockerfile
This commit is contained in:
parent
63ff58544d
commit
3424e2fbdc
|
@ -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"]
|
Loading…
Reference in New Issue