Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download Dockerfile from vectara/leaderboard: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/spaces/vectara/leaderboard/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/vectara/leaderboard/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/vectara/leaderboard/resolve/main/Dockerfile
432 Bytes
| FROM python:3.11 | |
| WORKDIR /app | |
| COPY ./app/requirements.txt /app/requirements.txt | |
| COPY ./app/app.py /app/app.py | |
| COPY ./app/app_utils.py /app/app_utils.py | |
| RUN apt-get update && apt-get install -y git-lfs | |
| RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt | |
| RUN useradd -m -u 1000 user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| RUN mkdir -p /app/results | |
| RUN chown -R user /app | |
| CMD ["python", "app.py"] | |