Spaces:
Runtime error
Runtime error
FROM docker.io/library/python:3.10@sha256:aaacc373f21abcbc67a22d203dab7fb797c016cc4c1daa7d2dec359dcbf4aea1 | |
WORKDIR /home/user/app | |
RUN apt-get update && apt-get install -y \ | |
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& git lfs install | |
RUN apt-get update && apt-get install -y fakeroot \ | |
&& mv /usr/bin/apt-get /usr/bin/.apt-get \ | |
&& echo '#!/usr/bin/env sh\nfakeroot /usr/bin/.apt-get $@' > /usr/bin/apt-get \ | |
&& chmod +x /usr/bin/apt-get \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& useradd -m -u 1000 user | |
COPY --chown=1000:1000 --from=root / / | |
# Upgrade pip | |
RUN pip install --no-cache-dir --upgrade pip | |
# Install requirements | |
RUN --mount=target=/tmp/requirements.txt,source=requirements.txt \ | |
pip install --no-cache-dir -r /tmp/requirements.txt | |