feat: Added platform distinction

This commit is contained in:
sangge 2023-11-17 08:26:12 +08:00
parent 6a345d7466
commit ca46f0d9d8
10 changed files with 5 additions and 1 deletions

View File

@ -2,7 +2,11 @@ FROM python:3.11
COPY requirements.txt /app/
COPY lib/* /lib/
# 设置目标平台参数
ARG TARGETPLATFORM
# 根据目标平台复制相应架构的库文件
COPY lib/${TARGETPLATFORM}/* /lib/
WORKDIR /app