docs: migrate to MkDocs for site generation (#5227)

This commit is contained in:
Oleg Lobanov
2025-06-28 19:34:34 +02:00
committed by GitHub
parent 464b644adf
commit 6072540c3e
25 changed files with 281 additions and 8 deletions

22
Dockerfile.site Normal file
View File

@@ -0,0 +1,22 @@
FROM squidfunk/mkdocs-material as build
WORKDIR /build
COPY site/requirements.txt /build/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY LICENSE /build/docs/LICENSE
COPY site/ /build/
COPY README.md /build/docs/index.md
RUN sed -i 's|site/docs/||g' /build/docs/index.md
RUN mkdocs build
FROM ghcr.io/umputun/reproxy
# enables automatic changelog generation by tools like Dependabot
LABEL org.opencontainers.image.source="https://github.com/filebrowser/filebrowser"
COPY --from=build /build/site /srv/site
EXPOSE 8080
USER app
ENTRYPOINT ["/srv/reproxy", "--assets.location=/srv/site", "--assets.cache=30d", "--assets.cache=text/html:30s"]