fix: avoid build-time root-owned cache env dirs
Browse files- Dockerfile +0 -10
Dockerfile
CHANGED
|
@@ -2,16 +2,6 @@ FROM python:3.11-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
ENV HOME=/tmp/context-corruption-training \
|
| 6 |
-
XDG_CACHE_HOME=/tmp/context-corruption-training/cache \
|
| 7 |
-
HF_HOME=/tmp/context-corruption-training/cache/huggingface \
|
| 8 |
-
HF_HUB_CACHE=/tmp/context-corruption-training/cache/huggingface/hub \
|
| 9 |
-
TRANSFORMERS_CACHE=/tmp/context-corruption-training/cache/huggingface/transformers \
|
| 10 |
-
WANDB_DIR=/tmp/context-corruption-training/wandb \
|
| 11 |
-
WANDB_CACHE_DIR=/tmp/context-corruption-training/cache/wandb \
|
| 12 |
-
MPLCONFIGDIR=/tmp/context-corruption-training/cache/matplotlib \
|
| 13 |
-
OUTPUT_DIR=/tmp/context-corruption-training/checkpoints/grpo-qwen-1.5b
|
| 14 |
-
|
| 15 |
RUN apt-get update && apt-get install -y git build-essential && rm -rf /var/lib/apt/lists/*
|
| 16 |
|
| 17 |
# Stable cu121 torch — TorchAO import shims are applied at runtime before Unsloth loads.
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
RUN apt-get update && apt-get install -y git build-essential && rm -rf /var/lib/apt/lists/*
|
| 6 |
|
| 7 |
# Stable cu121 torch — TorchAO import shims are applied at runtime before Unsloth loads.
|