binary1ne commited on
Commit
3ac3871
·
verified ·
1 Parent(s): 69b0f7a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Start with the official openEuler vLLM CPU base image
2
+ FROM openeuler/vllm-cpu:latest
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # (Optional) Install any additional dependencies your model or application might need
8
+ # Example:
9
+ # RUN yum install -y some-package
10
+
11
+ # Copy your model files into the container (assuming they are in a 'model' directory in your context)
12
+ # You might need to adjust this depending on how you're providing the model
13
+ COPY ./model /app/model
14
+
15
+ # Set the environment variable for Hugging Face token if you're using gated models
16
+ # Replace <YOUR_HUGGINGFACE_TOKEN> with your actual token
17
+ ENV HUGGING_FACE_HUB_TOKEN="<YOUR_HUGGINGFACE_TOKEN>"
18
+
19
+ # Command to run the vLLM OpenAI-compatible server with your model
20
+ # Replace "your-model-name" with the actual model ID from Hugging Face
21
+ CMD ["python", "-m", "vllm.entrypoints.openai.api_server", "--model", "your-model-name", "--host", "0.0.0.0", "--port", "8000"]