14 lines
325 B
Docker
14 lines
325 B
Docker
FROM maca-c500-pytorch:2.33.0.6-torch2.6-py310-ubuntu24.04-amd64
|
|
|
|
WORKDIR /workspace
|
|
|
|
ENV PATH=/opt/conda/bin:${PATH}
|
|
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"]
|
|
|