File size: 816 Bytes
542f731
 
 
 
35a7124
 
 
542f731
35a7124
 
542f731
 
 
 
 
162a6fc
aae5a4a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.11-slim

WORKDIR /app

# Install git (needed for installing from GitHub)
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*

# Install dependencies
# Install inspect_ai from PR branch with HF filesystem fix
RUN pip install --no-cache-dir git+https://github.com/dvsrepo/inspect_ai.git@fallback-to-modified-for-hf-fs huggingface_hub

# Expose port for inspect view (HF Spaces uses 7860)
EXPOSE 7860

# Run inspect view pointing to the dataset
# HF_TOKEN is automatically available in HF Spaces as an environment variable
# hf://datasets/dvilasuero/simpleqa_verified-sample/logs will be replaced when duplicating the space
CMD ["inspect", "view", "--log-dir", "hf://datasets/dvilasuero/simpleqa_verified-sample/logs", "--host", "0.0.0.0", "--port", "7860"]