Malits/Av1api
0
1# Use a slim, official Python runtime2FROM python:3.10-slim3 4# Set environment variables5ENV PYTHONDONTWRITEBYTECODE=16ENV PYTHONUNBUFFERED=17ENV PORT=78608 9# Set working directory10WORKDIR /app11 12# Install dependencies13COPY requirements.txt .14RUN pip install --no-cache-dir -r requirements.txt15 16# Copy application files17COPY . .18 19# Hugging Face runs containers under UID 1000 (non-root)20# We ensure the container workspace has full permissions21RUN chmod -R 777 /app22 23# Expose the API port (Hugging Face Spaces expects 7860)24EXPOSE 786025 26# Run the app27CMD ["python", "Av1api.py"]28 