Упаковка в docker

This commit is contained in:
2025-11-22 17:18:34 +08:00
parent 0e626ac48b
commit 49b85a6bee
3 changed files with 51 additions and 12 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM squidfunk/mkdocs-material AS m3u-su-docs-builder
COPY . /docs
RUN mkdocs build
FROM nginx:alpine AS m3u-su-docs
LABEL org.opencontainers.image.authors="Anthony Axenov <anthonyaxenov@gmail.com>"
COPY --from=m3u-su-docs-builder /docs/site /usr/share/nginx/html
WORKDIR /usr/share/nginx/html
USER root
EXPOSE 80
CMD [ "nginx", "-g", "daemon off;" ]