Cognitive-ai / Dockerfile
mdAmin313's picture
Upload 10 files
5923f33 verified
raw
history blame contribute delete
399 Bytes
# Use Python 3.11 slim image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy requirements
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY . .
# Expose port for Gradio
EXPOSE 7860
# Health check
HEALTHCHECK CMD curl --fail http://localhost:7860/_info/ || exit 1
# Run the app
CMD ["python", "app.py"]