NovaDXB / Dockerfile
nipunkavindaAI's picture
Initial commit
5a12db1
Raw
History Blame Contribute Delete
928 Bytes
# ─────────────────────────────────────────
# NovaDXB β€” Dockerfile
# Base: Python 3.11 slim
# ─────────────────────────────────────────
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PORT=7860
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first (layer caching)
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY . .
# Expose port (HuggingFace Spaces uses 7860)
EXPOSE 7860
# Run the app
CMD ["python", "app.py"]