Anomaly-detection / Dockerfile
rajendrakumarv's picture
Update Dockerfile (#8)
4e02d78 verified
raw
history blame contribute delete
597 Bytes
FROM python:3.9-slim
# System dependencies for video processing
RUN apt-get update && apt-get install -y \
ffmpeg \
libsm6 \
libxext6 \
libxrender-dev \
libgl1-mesa-glx \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY app.py .
# Create the HF cache volume
RUN mkdir -p /cache && chmod 777 /cache
# Expose port and set runtime env
ENV PYTHONUNBUFFERED=1 \
PORT=7860
EXPOSE 7860
# Launch
CMD ["python", "app.py"]