This commit is contained in:
parent
023d2a0868
commit
1d3223c4ae
|
|
@ -117,7 +117,7 @@ FROM nvidia/cuda:${CUDA_VERSION}-runtime-ubuntu22.04
|
|||
ENV DEBIAN_FRONTEND=noninteractive PYTHONUNBUFFERED=1 LANG=C.UTF-8 LC_ALL=C.UTF-8
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends gcc g++ build-essential ninja-build cuda-compiler-12-6\
|
||||
python3 python3-dev python3-pip python3-distutils ca-certificates \
|
||||
python3 python3-dev python3-pip python3-distutils curl ca-certificates \
|
||||
libopenblas-dev libgomp1 libcupti-dev libnuma1 libopenmpi-dev openmpi-bin libnuma-dev libpng16-16 libjpeg8 && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
python3 -m pip install --no-cache-dir --upgrade pip \
|
||||
|
|
@ -162,7 +162,7 @@ ENTRYPOINT ["/tini", "--"]
|
|||
# ---- 拷贝模型(路径可换) ----
|
||||
COPY ./Alibaba/Qwen3-8B /root/.cradle/Alibaba/Qwen3-8B
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=2s --start-period=600s --retries=5 CMD curl -fs http://localhost:30000/health || exit 1
|
||||
HEALTHCHECK --interval=30s --timeout=2s --start-period=300s --retries=5 CMD curl -fs http://localhost:30000/health || exit 1
|
||||
|
||||
# ---- 暴露端口 ----
|
||||
EXPOSE 30000
|
||||
|
|
|
|||
Loading…
Reference in New Issue