File size: 807 Bytes
adf79f3
 
40afe12
adf79f3
494ceb5
be09c5e
adf79f3
d0f0edb
 
 
 
 
 
 
be09c5e
adf79f3
 
40afe12
adf79f3
 
e1996ec
adf79f3
 
 
be09c5e
adf79f3
 
0b3552f
adf79f3
23d2d9c
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
# Use the official vLLM image as the base image
FROM vllm/vllm-openai:latest

# Install debugging tools
# RUN apt-get update && apt-get install -y procps vim

# Set environment variables
ENV HF_HOME="/tmp/huggingface"
ENV XDG_CACHE_HOME="/tmp/cache"
ENV NUMBA_CACHE_DIR="/tmp/numba_cache"
ENV OUTLINES_CACHE_DIR="/tmp/outlines_cache"
ENV VLLM_USE_MODELSCOPE="false"
ENV VLLM_DISABLE_USAGE_STATS="true"
ENV XDG_CONFIG_HOME="/tmp/config"

# Ensure PATH includes common Python locations
ENV PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"

# Set the working directory
WORKDIR /app

# Copy your entrypoint script
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh

# Expose the port the app runs on
EXPOSE 8000

# Set the entrypoint
ENTRYPOINT ["/app/entrypoint.sh"]