Avatar_bot / dockerfile
RCaz's picture
avoid installing librairies for gpu (#6)
3c1d7ef verified
raw
history blame contribute delete
539 Bytes
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"]