You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
483 B
21 lines
483 B
FROM python:3.9.0-alpine
|
|
|
|
ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
|
|
RUN pip install --upgrade pip
|
|
RUN pip install mkdocs-material==9.4.1 mkdocs-glightbox
|
|
|
|
WORKDIR /hello-algo
|
|
|
|
COPY overrides ./build/overrides
|
|
COPY docs ./build/docs
|
|
COPY docs-en ./build/docs-en
|
|
COPY mkdocs.yml ./mkdocs.yml
|
|
COPY mkdocs-en.yml ./mkdocs-en.yml
|
|
|
|
RUN mkdocs build -f mkdocs.yml
|
|
RUN mkdocs build -f mkdocs-en.yml
|
|
|
|
WORKDIR /app/site
|
|
EXPOSE 8000
|
|
CMD ["python", "-m", "http.server", "8000"]
|