Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -8
Dockerfile
CHANGED
|
@@ -2,17 +2,10 @@ FROM python:3.11-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
# Install git (needed for installing from GitHub)
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
-
# Install dependencies
|
| 9 |
-
# Install inspect_ai from PR branch with HF filesystem fix
|
| 10 |
RUN pip install --no-cache-dir git+https://github.com/dvsrepo/inspect_ai.git@fallback-to-modified-for-hf-fs huggingface_hub
|
| 11 |
|
| 12 |
-
# Expose port for inspect view (HF Spaces uses 7860)
|
| 13 |
EXPOSE 7860
|
| 14 |
|
| 15 |
-
|
| 16 |
-
# HF_TOKEN is automatically available in HF Spaces as an environment variable
|
| 17 |
-
# DATASET_PATH will be replaced when duplicating the space
|
| 18 |
-
CMD ["inspect", "view", "--log-dir", "DATASET_PATH", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
RUN apt-get update && apt-get install -y --no-install-recommends git && rm -rf /var/lib/apt/lists/*
|
| 6 |
|
|
|
|
|
|
|
| 7 |
RUN pip install --no-cache-dir git+https://github.com/dvsrepo/inspect_ai.git@fallback-to-modified-for-hf-fs huggingface_hub
|
| 8 |
|
|
|
|
| 9 |
EXPOSE 7860
|
| 10 |
|
| 11 |
+
CMD ["sh", "-c", "inspect view --log-dir \"${LOG_DIR}\" --host 0.0.0.0 --port 7860"]
|
|
|
|
|
|
|
|
|