forked from Textualize/trogon
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (18 loc) · 570 Bytes
/
Dockerfile
File metadata and controls
20 lines (18 loc) · 570 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.13.0-slim-bullseye as build
RUN apt-get update \
&& apt-get install --upgrade -y git build-essential gcc libssl-dev libffi-dev python3-dev
WORKDIR /workspace
COPY . /workspace
ENV PYTHONUNBUFFERED=1
RUN python3 -m pip install 'mkdocs==1.*' \
'mkdocs-material>=9.5,<10' \
'mkdocs-jupyter' \
'mkdocs-include-dir-to-nav' \
'mkdocstrings[python]' \
'black' \
'mkdocs-autorefs' \
'pymdown-extensions' \
'pygments'
RUN python3 -m mkdocs build -d public
FROM nginx:1
COPY --from=build /workspace/public /usr/share/nginx/html