Spaces:
Build error
Build error
File size: 539 Bytes
3c1d7ef cf6a965 3c1d7ef cf6a965 3c1d7ef cf6a965 3c1d7ef cf6a965 3c1d7ef |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
FROM python:3.12-slim AS builder
# mimick container built for gradio
RUN apt-get update && apt-get install -y \
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 curl \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y nodejs \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# install without gpu
RUN pip install --no-cache-dir -U pip
COPY requirements.txt .
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --no-cache-dir -r requirements.txt
CMD ["python", "app.py"] |