Spaces:
Sleeping
Sleeping
FROM python:3.9 | |
# 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" | |
# Set the entrypoint | |
ENTRYPOINT ["/app/entrypoint.sh"] |