stabilizer / Dockerfile
Ricky01anjay's picture
Create Dockerfile
796b462 verified
raw
history blame contribute delete
617 Bytes
FROM python:3.9-slim
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y \
ffmpeg \
libgl1 \
libglib2.0-0 \
build-essential \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir \
opencv-python-headless \
numpy \
fastapi \
uvicorn \
python-multipart \
requests \
vidstab
COPY . .
RUN mkdir -p uploads processed && chmod -R 777 uploads processed
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]