RiayatechChatDoctor / Dockerfile
Muhammadidrees's picture
Update Dockerfile
f40e934 verified
raw
history blame contribute delete
584 Bytes
# Use official PyTorch image with CUDA support if GPU, or CPU-only
ARG BASE_IMAGE=python:3.10-slim
FROM ${BASE_IMAGE}
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
ffmpeg \
libsndfile1 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Copy app code
COPY . .
# Expose port for Gradio
EXPOSE 7860
# Start the app
CMD ["python", "app.py"]