AI_FastAPI / Dockerfile
fagrrr's picture
Initial Hugging Face deployment
c802d72
Raw
History Blame Contribute Delete
338 Bytes
FROM python:3.10-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
libgl1 \
libglib2.0-0 \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN chmod +x start.sh
EXPOSE 7860
CMD ["bash", "start.sh"]