File size: 997 Bytes
0daf510
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04

# System deps
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
    git git-lfs curl rsync jq ca-certificates tini python3 python3-pip python3-venv \
    && rm -rf /var/lib/apt/lists/* \
    && git lfs install

# Python deps
RUN pip3 install --no-cache-dir \
    'vllm==0.10.1.*' \
    'transformers>=4.43' \
    'huggingface_hub[cli]>=0.23' \
    'requests>=2.31'

ENV HF_HOME=/var/cache/hf \
    TRANSFORMERS_CACHE=/var/cache/hf \
    HF_MODULES_CACHE=/var/cache/hf/modules

RUN mkdir -p /var/cache/hf && chmod -R 777 /var/cache/hf

WORKDIR /opt/elizabeth/mlops

# Copy only required scripts
COPY serve_elizabeth_vllm.sh ./
COPY elizabeth_vllm_ready.sh ./
COPY proxy_15000.py ./

# Seed-aware entrypoint
COPY docker/serve/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh && chmod +x ./serve_elizabeth_vllm.sh && chmod +x ./elizabeth_vllm_ready.sh

EXPOSE 8000
ENTRYPOINT ["/usr/bin/tini","--"]
CMD ["/entrypoint.sh"]