Skip to content

Commit 6251b8e

Browse files
19santosh99Santosh Maturiruvnetkrahets
authored
fix: improve Dockerfile for international contributors (#1861)
* fix: improve Dockerfile for international contributors - Upgrade base image from python:3.10.0-alpine to python:3.12-alpine for security patches - Replace hardcoded Chinese PyPI mirror with configurable ARG defaulting to official PyPI (Chinese users can override via --build-arg) - Add missing Japanese docs build step Co-Authored-By: claude-flow <ruv@ruv.net> * Change Python base image and add Russian docs Updated Python base image from 3.12 to 3.10 and added support for Russian documentation. --------- Co-authored-by: Santosh Maturi <santhum@amazon.com> Co-authored-by: claude-flow <ruv@ruv.net> Co-authored-by: Yudong Jin <krahets@163.com>
1 parent a2cf8a3 commit 6251b8e

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

Dockerfile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
FROM python:3.10.0-alpine
22

3-
ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
3+
# Official PyPI is preferred when reachable.
4+
ENV PIP_INDEX_URL=https://pypi.org/simple
5+
6+
# Use the mirror when official PyPI is unreachable.
7+
# ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
8+
49
RUN pip install --upgrade pip
510
RUN pip install mkdocs-material==9.5.5 mkdocs-glightbox
611

@@ -20,6 +25,14 @@ COPY en/docs ./build/en/docs
2025
COPY en/mkdocs.yml ./en/mkdocs.yml
2126
RUN mkdocs build -f ./en/mkdocs.yml
2227

28+
COPY ja/docs ./build/ja/docs
29+
COPY ja/mkdocs.yml ./ja/mkdocs.yml
30+
RUN mkdocs build -f ./ja/mkdocs.yml
31+
32+
COPY ru/docs ./build/ru/docs
33+
COPY ru/mkdocs.yml ./ru/mkdocs.yml
34+
RUN mkdocs build -f ./ru/mkdocs.yml
35+
2336
WORKDIR /hello-algo/site
2437
EXPOSE 8000
2538
CMD ["python", "-m", "http.server", "8000"]

0 commit comments

Comments
 (0)