mirror of
https://gh-proxy.ooowl.net/https://github.com/mtrlps-community/lps-community-guide.git
synced 2026-11-22 04:48:55 +08:00
20 lines
484 B
Docker
20 lines
484 B
Docker
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 |