Update Dockerfile
This commit is contained in:
parent
54d6472cb7
commit
1978b733d2
1 changed files with 15 additions and 1 deletions
16
Dockerfile
16
Dockerfile
|
|
@ -1 +1,15 @@
|
||||||
FROM python:3.11-slim WORKDIR /app COPY --from=builder /app/site /app EXPOSE 8000 CMD ["python3", "-m", "http.server", "8000", "--directory", "/app"]
|
FROM python:3.11-slim AS builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY ./site .
|
||||||
|
|
||||||
|
RUN mkdocs build
|
||||||
|
|
||||||
|
EXPOSE 8000
|
||||||
|
|
||||||
|
CMD ["mkdocs", "serve", "--host", "0.0.0.0", "--port", "8000"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue