tpre-python/basedockerfile
muzhi bf6e25b722
All checks were successful
Test CI / test speed (push) Successful in 17s
Add front-end functionality and improved server.py and node.py
2024-10-15 17:05:46 +08:00

19 lines
418 B
Plaintext

FROM python:3.12-slim
COPY requirements.txt /app/
# 设置目标平台参数
#ARG TARGETPLATFORM
# 根据目标平台复制相应架构的库文件
#COPY lib/${TARGETPLATFORM}/* /lib/
COPY lib/* /usr/local/lib/
WORKDIR /app
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install --index-url https://git.mamahaha.work/api/packages/sangge/pypi/simple/ ecc-rs
RUN ldconfig