pratham0011's picture
Upload 23 files
216523d verified
raw
history blame contribute delete
696 Bytes
FROM python:3.12-slim
# Set working directory
WORKDIR /app
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV OLLAMA_BASE_URL=http://host.docker.internal:11434
ENV SERVER_NAME=0.0.0.0
ENV SERVER_PORT=7860
ENV MODEL_NAME=qwen3:0.6b
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements file
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY . .
# Expose port for Gradio web interface
EXPOSE 7860
# Command to run the application
CMD ["python", "app.py"]