Spaces:
Sleeping
Sleeping
File size: 1,538 Bytes
7c6c7b7 6cb9d62 7c6c7b7 6cb9d62 7c6c7b7 6490764 6cb9d62 7c6c7b7 6cb9d62 7c6c7b7 40afe12 7c6c7b7 be09c5e 7c6c7b7 be09c5e 7c6c7b7 40afe12 7c6c7b7 be09c5e 7c6c7b7 0b3552f 7c6c7b7 0c9fd7a 7c6c7b7 0c9fd7a 7c6c7b7 0c9fd7a 7c6c7b7 0c9fd7a 7c6c7b7 0c9fd7a 7c6c7b7 0c9fd7a 7c6c7b7 0c9fd7a 7c6c7b7 0c9fd7a 7c6c7b7 |
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# 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 HUGGING_FACE_HUB_TOKEN="your_hf_token_here"
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"]
# FROM vllm/vllm-openai:latest
# # Create a non-root user
# RUN useradd -m -u 1000 user
# # Set the working directory in the container
# WORKDIR /app
# # Install vLLM
# RUN pip install --no-cache-dir vllm
# # Copy the entrypoint script
# COPY entrypoint.sh /app/entrypoint.sh
# # Change ownership of the working directory and entrypoint script to the non-root user
# RUN chown -R user:user /app
# # Change permissions of the entrypoint script
# RUN chmod +x /app/entrypoint.sh
# # Switch to the non-root user
# USER user
# # Set the PATH for the non-root user
# ENV PATH="/home/user/.local/bin:$PATH"
# EXPOSE 8000
# # Set the entrypoint
# ENTRYPOINT ["/app/entrypoint.sh"] |