Skip to content

Commit

Permalink
修改了workflow和image以适配arm
Browse files Browse the repository at this point in the history
  • Loading branch information
jackeyzzz12138 committed Jan 4, 2024
1 parent d93dcd2 commit 7ea2653
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-with-latex-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
Expand Down
12 changes: 6 additions & 6 deletions docs/GithubAction+NoLocal+latex+arm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

# FROM fuqingxu/python311_texlive_ctex:latest
# 制作arm64的镜像
FROM zupher/alpine_py311_latexfull_arm:1.0
FROM zupher/ubuntu_arm_py310_latex:latest
# # 安装python3.11
# RUN apk update
# RUN apk add python3
Expand All @@ -23,17 +23,17 @@ ENV PATH "$PATH:/usr/bin"
# 指定路径
WORKDIR /gpt

RUN pip3 install openai numpy arxiv rich --break-system-packages
RUN pip3 install colorama Markdown pygments pymupdf --break-system-packages
RUN pip3 install python-docx pdfminer --break-system-packages
RUN pip3 install nougat-ocr --break-system-packages
RUN pip3 install openai numpy arxiv rich
RUN pip3 install colorama Markdown pygments pymupdf
RUN pip3 install python-docx pdfminer
RUN pip3 install nougat-ocr

# 装载项目文件
COPY . .


# 安装依赖
RUN pip3 install -r requirements.txt --break-system-packages
RUN pip3 install -r requirements.txt

# 可选步骤,用于预热模块
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'
Expand Down

0 comments on commit 7ea2653

Please sign in to comment.