# generate harbor.4pd.io/hardcore-tech/mr100-3.2.1-x86-ubuntu20.04-py3.10-poc-vlm-infer:0.0.1 FROM corex:4.3.0 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"]