mirror of
https://github.com/imgfloat/docs.git
synced 2026-02-05 04:09:27 +00:00
Docs template
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM python:3.12-slim AS builder
|
||||
|
||||
WORKDIR /docs
|
||||
COPY pyproject.toml ./
|
||||
RUN pip install .
|
||||
COPY mkdocs.yml .
|
||||
COPY docs/ docs/
|
||||
RUN mkdocs build --clean
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
COPY --from=builder /docs/site /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user