Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
* Allow overriding of entrypoint arguments with CMD []
* Make WORKDIR an argument
* Pin to specific vllm-openai image
  • Loading branch information
nvonpentz committed Nov 5, 2024
1 parent 29cd2d2 commit 06745e9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Use vLLM's vllm-openai server image as the base
FROM vllm/vllm-openai:latest
FROM vllm/vllm-openai:v0.6.3.post1

# Set working directory
WORKDIR /workspace
# Define a build argument for the working directory, defaulting to /workspace
ARG WORKDIR_ARG=/workspace

# Set the working directory
WORKDIR ${WORKDIR_ARG}

# Install necessary build dependencies for sentencepiece
RUN apt-get update && apt-get install -y \
Expand All @@ -19,3 +22,4 @@ RUN --mount=type=cache,target=/root/.cache/pip \

# Override the VLLM entrypoint with the functionary server
ENTRYPOINT ["python3", "server_vllm.py", "--model", "meetkai/functionary-small-v3.2", "--host", "0.0.0.0", "--max-model-len", "8192"]
CMD []

0 comments on commit 06745e9

Please sign in to comment.