2023-01-10 12:47:40 +08:00
|
|
|
FROM python:3.9.0-alpine
|
2023-01-08 23:22:01 +08:00
|
|
|
|
2023-03-09 01:39:31 +08:00
|
|
|
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
|
2023-03-02 19:38:07 +08:00
|
|
|
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mkdocs-material==9.0.13
|
2023-01-08 23:22:01 +08:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2023-03-02 19:38:07 +08:00
|
|
|
COPY docs /app/build
|
2023-01-08 23:22:01 +08:00
|
|
|
COPY mkdocs.yml /app/mkdocs.yml
|
|
|
|
|
2023-09-21 18:39:29 +08:00
|
|
|
RUN mkdocs build
|
2023-01-08 23:22:01 +08:00
|
|
|
|
|
|
|
EXPOSE 8000
|
|
|
|
|
2023-01-11 03:37:14 +08:00
|
|
|
CMD ["mkdocs", "serve", "-a", "0.0.0.0:8000"]
|