add Dockerfile and whl package
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user