Update serve.sh
This commit is contained in:
1 parent
50f78ee8bc
commit
b27516a781
1 file changed
-8
@@ -76,20 +76,12 @@ ENV TENSOR_PARALLEL_SIZE=1 \
|
|||||||
|
|
||||||
# /var/lib/vllm = vLLM compile/JIT cache (mount a volume here to keep it
|
# /var/lib/vllm = vLLM compile/JIT cache (mount a volume here to keep it
|
||||||
# across container recreation); /models = mount your weights here.
|
# across container recreation); /models = mount your weights here.
|
||||||
VOLUME ["/models", "/var/lib/vllm"]
|
|
||||||
ENV VLLM_CACHE_ROOT=/var/lib/vllm
|
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
HEALTHCHECK --interval=60s --timeout=10s --start-period=300s --retries=5 \
|
HEALTHCHECK --interval=60s --timeout=10s --start-period=300s --retries=5 \
|
||||||
CMD python -c "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=5).status==200 else 1)" || exit 1
|
CMD python -c "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=5).status==200 else 1)" || exit 1
|
||||||
|
|
||||||
ENTRYPOINT ["/opt/1cat/serve.sh"]
|
|
||||||
CMD [""]
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
# serve.sh — 1.5.1 profile defaults + env overrides + pass-through extra args
|
|
||||||
# ---------------------------------------------------------------------------
|
|
||||||
RUN vllm serve "${MODEL}" \
|
RUN vllm serve "${MODEL}" \
|
||||||
--served-model-name "${SERVED_NAME:-qwen3.8-27b-awq}" \
|
--served-model-name "${SERVED_NAME:-qwen3.8-27b-awq}" \
|
||||||
--port "${PORT:-8000}" \
|
--port "${PORT:-8000}" \
|
||||||
|
|||||||
Reference in new issue
Block a user