docker: update

This commit is contained in:
Cyberes 2023-10-15 15:45:25 -06:00
parent f58fa1a6f1
commit 949ddda649
2 changed files with 8 additions and 5 deletions

View File

@ -1,20 +1,20 @@
FROM cyberes/paperspace-vllm-base as runtime 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 useradd -ms /bin/bash apiserver
RUN usermod -s /bin/bash root RUN usermod -s /bin/bash root
# Required packages # Required packages
RUN apt-get update && \ 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 RUN pip3 install --upgrade pip setuptools wheel
# Useful Python packages # Useful Python packages
RUN pip3 install glances RUN pip3 install glances
# Useful tools # 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/* rm -rf /var/lib/apt/lists/*
RUN cd /local-llm-server && git reset --hard && git pull RUN cd /local-llm-server && git reset --hard && git pull

View File

@ -2,4 +2,7 @@
# Build and push the container. # 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