add Dockerfile and whl package

This commit is contained in:
2025-08-18 16:21:14 +08:00
parent 621bebc473
commit d488721da1
11 changed files with 152 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM corex:3.2.1-ubuntu20.04-py3.10-slim
WORKDIR /workspace
ENV LD_LIBRARY_PATH=/usr/local/corex/lib:/usr/local/openmpi/lib:
COPY requirements.txt /workspace/
COPY whl /workspace/whl
RUN pip install whl/*.whl -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
RUN pip install numpy==1.23.5 -i https://mirrors.aliyun.com/pypi/simple/
RUN apt install -y libgl1
COPY 1.jpg /workspace/
COPY test.py /workspace/
COPY app.py /workspace/
COPY pre_processor.py /workspace/
COPY run.sh /workspace/
RUN rm -rf whl
CMD ["./run.sh"]