This commit is contained in:
2025-11-01 12:06:09 +08:00
parent 502bc34b62
commit faded11807
8 changed files with 1324 additions and 168 deletions

View File

@@ -1,13 +1,11 @@
FROM maca-c500-pytorch:2.33.0.6-torch2.6-py310-ubuntu24.04-amd64
ENV HF_ENDPOINT=https://hf-mirror.com
ENV PATH=/opt/conda/bin:${PATH}
RUN pip install transformers==4.50.0 uvicorn\[standard\] fastapi
FROM git.modelhub.org.cn:9443/enginex-metax/maca-c500-pytorch:2.33.0.6-torch2.6-py310-ubuntu24.04-amd64
WORKDIR /app
COPY ./ /app
RUN /opt/conda/bin/pip install transformers==4.46.3 einops addict easydict modelscope uvicorn fastapi
EXPOSE 8000
CMD ["sh", "-c", "python3 server.py"]
COPY app.py .
ENTRYPOINT []
CMD ["/opt/conda/bin/python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]