Skip to content

Commit

Permalink
full capacity docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Sep 7, 2023
1 parent 24f41b0 commit 97cb9a4
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions docs/GithubAction+AllCapacity
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
# docker build -t gpt-academic-all-capacity -f docs/GithubAction+AllCapacity --network=host --build-arg http_proxy=http://localhost:10881 --build-arg https_proxy=http://localhost:10881 .

# 从NVIDIA源,从而支持显卡(检查宿主的nvidia-smi中的cuda版本必须>=11.3)
FROM fuqingxu/python311_texlive_ctex:latest as texdocker
FROM nvidia/cuda:11.3.1-runtime-ubuntu20.04
COPY --from=texdocker /usr/local/texlive/ /usr/local/texlive/

RUN apt-get update
RUN apt-get install -y curl proxychains curl gcc
RUN apt-get install -y git python python3 python-dev python3-dev --fix-missing

ENV PATH="${PATH}:/usr/local/texlive/2023/bin/x86_64-linux:/usr/local/texlive/2024/bin/x86_64-linux:/usr/local/texlive/2025/bin/x86_64-linux:/usr/local/texlive/2026/bin/x86_64-linux"

FROM fuqingxu/11.3.1-runtime-ubuntu20.04-with-texlive:latest

# use python3 as the system default python
WORKDIR /gpt
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.8
# 下载pytorch
RUN python3 -m pip install torch --extra-index-url https://download.pytorch.org/whl/cu113
Expand Down

0 comments on commit 97cb9a4

Please sign in to comment.