From 1f514bc18039efc36e4c1a14ad17eed0e54cfcdf Mon Sep 17 00:00:00 2001 From: TonyV2Intl Date: Fri, 6 Nov 2026 14:32:35 +0800 Subject: [PATCH] Create Docker Config --- DOCKERFILE | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 DOCKERFILE diff --git a/DOCKERFILE b/DOCKERFILE new file mode 100644 index 0000000..da80c26 --- /dev/null +++ b/DOCKERFILE @@ -0,0 +1,20 @@ +FROM python:3.11-slim AS builder + +WORKDIR /app + +RUN apt-get update && \ + apt-get install -y --no-install-recommends git && \ + rm -rf /var/lib/apt/lists/* + +RUN git clone --depth=1 https://github.com/mtrlps-community/lps-community-guide.git . && \ + rm -rf .git/hooks .git/logs + +RUN pip install --no-cache-dir \ + mkdocs-material \ + mkdocs-git-revision-date-localized-plugin + +RUN mkdocs build + +FROM nginx:alpine +COPY --from=builder /app/site /usr/share/nginx/html +EXPOSE 80 \ No newline at end of file