13 lines
342 B
Docker
13 lines
342 B
Docker
FROM git.modelhub.org.cn:9443/enginex-cambricon/mlu370-pytorch:v25.01-torch2.5.0-torchmlu1.24.1-ubuntu22.04-py310
|
|
|
|
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"]
|
|
|