FROM lmsysorg/sglang:latest # 1. Force the upgrade of transformers without triggering pip's strict dependency resolver RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir --upgrade --no-deps \ git+https://github.com/huggingface/transformers.git \ --break-system-packages # 2. Inject your working bare-metal SGLang source code directly over the container's default COPY local-sglang/python /sgl-workspace/sglang/python WORKDIR /app