-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (28 loc) · 951 Bytes
/
Dockerfile
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
FROM ubuntu:20.04
RUN apt-get update -y && \
apt-get -qq install -y --no-install-recommends \
git \
curl \
rsync \
unzip \
less \
vim \
gnupg \
htop \
openssh-client \
p7zip \
apt-utils \
jq \
p7zip-full \
ca-certificates \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
&& update-ca-certificates
# Install Miniforge3 (mamba-based open miniconda)
ARG MFURL="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh"
RUN curl -L -o /tmp/Miniforge3.sh "${MFURL}" && \
bash /tmp/Miniforge3.sh -b -p /opt/conda && \
rm -f /tmp/Miniforge3.sh
COPY vllm-environment.yml /root/vllm-environment.yml
RUN . /opt/conda/bin/activate && \
mamba env create -p /opt/vllm -f /root/vllm-environment.yml
CMD echo 'Hint: /opt/conda/bin/conda run -p /opt/vllm python -m vllm.entrypoints.openai.api_server --host 0.0.0.0 --port 8000 --model gpt2'