AI-Auditor / Dockerfile
syedMohib44
Fix invalid colorTo value
8db356d
raw
history blame contribute delete
848 Bytes
# Base image
FROM python:3.10-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV PIP_NO_CACHE_DIR=1
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set work directory
WORKDIR /app
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Copy application and model code
COPY . .
# If you're downloading the model from Hugging Face hub instead of local folder:
# RUN python -c "from transformers import pipeline; pipeline('text-generation', model='syedmohib/audit-model', tokenizer='syedmohib/audit-model')"
# Expose the Gradio port
EXPOSE 7860
# Run the Gradio app
CMD ["python", "app.py"]