deploy with Dockerfile
This commit is contained in:
parent
8bd4098e35
commit
26ee268fa0
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
||||
Loading…
x
Reference in New Issue
Block a user