Spaces:
Sleeping
Sleeping
File size: 1,405 Bytes
0f87dc1 f2ff7c9 0f87dc1 ccc64a6 f2ff7c9 ba3922a f2ff7c9 0f87dc1 f2ff7c9 ccc64a6 f2ff7c9 03725ff f2ff7c9 ccc64a6 f2ff7c9 0f87dc1 ccc64a6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# Better use newer Python as generated code can use new features
FROM python:3.10-slim
# install git, g++ and python3-tk
RUN apt-get update && apt-get install -y git g++ python3-tk zip unzip procps r-base
# upgrade to latest pip
RUN pip install --upgrade pip
RUN pip install APScheduler==3.10.1 black==23.11.0 click==8.1.3 huggingface-hub>=0.18.0 plotly python-dateutil==2.8.2 gradio-space-ci@git+https://huggingface.co/spaces/Wauplin/gradio-space-ci@0.2.3 isort ruff gradio[oauth] schedule==1.2.2
# Add a new user "bigcodebenchuser"
RUN adduser --disabled-password --gecos "" bigcodebenchuser
RUN rm -rf /bigcodebench
# Acquire benchmark code to local
ADD "https://api.github.com/repos/bigcode-project/bigcodebench/commits?per_page=1" latest_commit
RUN git clone https://github.com/bigcode-project/bigcodebench.git /bigcodebench
RUN cd /bigcodebench && pip install .
RUN pip install -I --timeout 2000 -r https://github.com/bigcode-project/bigcodebench-annotation/releases/download/v0.1.0/requirements.txt
RUN apt-get update && \
apt-get install -y \
bash \
git git-lfs \
wget curl procps \
htop vim nano && \
rm -rf /var/lib/apt/lists/*
# Pre-install the dataset
# RUN python3 -c "from bigcodebench.data import get_bigcodebench; get_bigcodebench()"
WORKDIR /app
RUN chown -R bigcodebenchuser:bigcodebenchuser /app
RUN chmod -R 777 /app
USER bigcodebenchuser
|