hello-algo/Dockerfile

16 lines
346 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-09 01:39:31 +08:00
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
2023-09-24 22:57:45 +08:00
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mkdocs-material==9.4.1 mkdocs-glightbox
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
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"]