feature: add
This commit is contained in:
20
docker-images/iluvatar-mr100.dockerfile
Normal file
20
docker-images/iluvatar-mr100.dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
# generate harbor.4pd.io/hardcore-tech/mr100-3.2.1-x86-ubuntu20.04-py3.10-poc-vlm-infer:0.0.1
|
||||
FROM harbor-contest.4pd.io/luxinlong02/sherpa-onnx-offline-asr:1.12.5-mr100-corex-4.3.0-zh-en
|
||||
ENV HF_ENDPOINT=https://hf-mirror.com
|
||||
|
||||
# Try common distros; the first that exists will succeed
|
||||
RUN (apt-get update && apt-get install -y python3-pip) || \
|
||||
(microdnf install -y python3-pip) || \
|
||||
(dnf install -y python3-pip) || \
|
||||
(yum install -y python3-pip) || \
|
||||
(apk add --no-cache py3-pip)
|
||||
|
||||
RUN /usr/local/bin/python3 -m pip install --no-cache-dir --upgrade pip \
|
||||
&& /usr/local/bin/python3 -m pip install --no-cache-dir uvicorn fastapi "transformers==4.45.0"
|
||||
|
||||
WORKDIR /app
|
||||
COPY server.py /app/server.py
|
||||
EXPOSE 8000
|
||||
ENTRYPOINT ["/usr/local/bin/python3","-m","uvicorn","server:app"]
|
||||
CMD ["--host","0.0.0.0","--port","8000"]
|
||||
|
||||
Reference in New Issue
Block a user