translation demo for ascend 910b4
This commit is contained in:
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@@ -0,0 +1,11 @@
|
||||
FROM swr.cn-south-1.myhuaweicloud.com/ascendhub/cann:8.2.rc1-910b-ubuntu22.04-py3.11
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
COPY requirements.txt /workspace
|
||||
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||
|
||||
ADD . /workspace
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["sh", "-c", "python3 fastapi_translate.py"]
|
||||
Reference in New Issue
Block a user