henaiv2 / Dockerfile
joashsam's picture
Upload 5 files
6e6967f verified
Raw
History Blame Contribute Delete
674 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies for audio/image processing
RUN apt-get update && apt-get install -y \
gcc \
g++ \
libpq-dev \
libmagic1 \
ffmpeg \
libsm6 \
libxext6 \
libxrender-dev \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
# Install Python packages
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Create necessary directories
RUN mkdir -p generated_images generated_docs processed_docs temp_docs
# Expose the port
EXPOSE 7860
# Run the application
CMD ["python", "app.py"]