deploy with Dockerfile

This commit is contained in:
Florian du Garage Num 2024-01-04 20:50:11 +01:00
parent 8bd4098e35
commit 26ee268fa0
2 changed files with 15 additions and 1 deletions

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM python:3.11-slim
WORKDIR /app
COPY . /app
RUN apt-get update && \
apt-get install -y git && \
git config --global --add safe.directory /app
RUN pip install -r requirements.txt
RUN mkdocs build
CMD ["python", "-m", "http.server", "--directory", "public", "5000"]

View File

@ -1 +0,0 @@
web: git config --global --add safe.directory /app && mkdir public && mkdocs build && python -m http.server --directory public 5000