1
File size: 884 Bytes
936c97e
 
bb3ec35
936c97e
 
 
 
 
1e0cd06
e45dd5b
936c97e
 
 
 
 
 
 
 
 
c24167d
e45dd5b
936c97e
 
bb3ec35
936c97e
c24167d
e45dd5b
936c97e
 
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
# Use a lightweight Python base image
FROM python:3.10-slim

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1

# Create working directory
WORKDIR /app

# Install system dependencies (optional but often needed for FastAPI/uvicorn)
RUN apt-get update && apt-get install -y --no-install-recommends \
    curl \
 && rm -rf /var/lib/apt/lists/*

# Download requirements.txt from Hugging Face
RUN curl -o requirements.txt https://huggingface.co/datasets/rkihacker/HellFire/raw/main/requirements.txt

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Download the main FastAPI app
RUN curl -o main.py https://huggingface.co/datasets/rkihacker/HellFire/raw/main/main.py

# Expose FastAPI default port
EXPOSE 8000

# Command to run the FastAPI app with uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]