forked from sangge/tpre-python
feat: Added platform distinction
This commit is contained in:
parent
6a345d7466
commit
ca46f0d9d8
@ -2,7 +2,11 @@ FROM python:3.11
|
||||
|
||||
COPY requirements.txt /app/
|
||||
|
||||
COPY lib/* /lib/
|
||||
# 设置目标平台参数
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
# 根据目标平台复制相应架构的库文件
|
||||
COPY lib/${TARGETPLATFORM}/* /lib/
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user