From 949ddda649dd3dcd728088b00612ac92edb6322b Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sun, 15 Oct 2023 15:45:25 -0600 Subject: [PATCH] docker: update --- other/vllm/Docker/Dockerfile | 8 ++++---- other/vllm/Docker/build-docker.sh | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/other/vllm/Docker/Dockerfile b/other/vllm/Docker/Dockerfile index 75a840b..d636118 100644 --- a/other/vllm/Docker/Dockerfile +++ b/other/vllm/Docker/Dockerfile @@ -1,20 +1,20 @@ FROM cyberes/paperspace-vllm-base as runtime -RUN apt-get update && apt-get install -y supervisor && rm -rf /var/lib/apt/lists/* - RUN useradd -ms /bin/bash apiserver RUN usermod -s /bin/bash root # Required packages RUN apt-get update && \ - apt-get install -y python3 python3-pip + apt-get install -y python3 python3-pip supervisor && \ + rm -rf /var/lib/apt/lists/* RUN pip3 install --upgrade pip setuptools wheel # Useful Python packages RUN pip3 install glances # Useful tools -RUN apt-get install -y wget aria2 git-lfs git openssh-server openssh-client nano tmux file && \ +RUN apt-get update && \ + apt-get install -y wget aria2 git-lfs git openssh-server openssh-client nano tmux file && \ rm -rf /var/lib/apt/lists/* RUN cd /local-llm-server && git reset --hard && git pull diff --git a/other/vllm/Docker/build-docker.sh b/other/vllm/Docker/build-docker.sh index 3fe6734..ae2dbad 100644 --- a/other/vllm/Docker/build-docker.sh +++ b/other/vllm/Docker/build-docker.sh @@ -2,4 +2,7 @@ # Build and push the container. -git pull; git pull; sudo docker build . -t cyberes/vllm-paperspace && sudo docker push cyberes/vllm-paperspace:latest +git pull +git pull +sudo docker build . -f Dockerfile.base -t cyberes/paperspace-vllm-base && sudo docker push cyberes/paperspace-vllm-base:latest +sudo docker build . -t cyberes/vllm-paperspace && sudo docker push cyberes/vllm-paperspace:latest