Spaces:
Sleeping
Sleeping
File size: 814 Bytes
8f057f3 84bcecf 8f057f3 a0dcbe2 8f057f3 9b1d484 8f057f3 9b1d484 02b3d0d 8f057f3 e58a643 9b1d484 8f057f3 84bcecf 8f057f3 84bcecf 4a789b6 02b3d0d a0dcbe2 8f057f3 9b1d484 a0dcbe2 | 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 | # ==============================================================
# Tech Disciples AI — Dockerfile (Minimalist Python Version)
# ==============================================================
FROM python:3.10-slim
# Environment setup
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
APP_HOME=/app
WORKDIR $APP_HOME
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy all source files (main.py, static/, templates/)
COPY . .
# Define Hugging Face token env var
ENV HUGGINGFACEHUB_API_TOKEN=""
# Expose port for FastAPI
EXPOSE 7860
# Launch the app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|