init
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user