hello-algo/Dockerfile

16 lines
316 B
Docker
Raw Normal View History

2023-01-10 12:47:40 +08:00
FROM python:3.9.0-alpine
2023-01-08 23:22:01 +08:00
2023-03-02 19:38:07 +08:00
RUN pip install --upgrade pip
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-03-02 19:38:07 +08:00
RUN mkdir -p ./build/overrides && 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"]