Jayant-Kernel commited on
fix: use python:3.10-slim base, set HOME=/tmp
Browse files- Dockerfile +8 -16
Dockerfile
CHANGED
|
@@ -1,30 +1,22 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
| 4 |
ENV PYTHONUNBUFFERED=1
|
| 5 |
ENV HF_HOME=/tmp/huggingface
|
| 6 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 7 |
ENV PIP_CACHE_DIR=/tmp/pip-cache
|
|
|
|
| 8 |
|
| 9 |
-
RUN apt-get update && apt-get install -y
|
| 10 |
-
python3.10 python3-pip git build-essential \
|
| 11 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
-
|
| 13 |
-
RUN ln -s /usr/bin/python3.10 /usr/bin/python
|
| 14 |
|
| 15 |
WORKDIR /app
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
--no-deps
|
| 21 |
|
| 22 |
-
RUN pip install --no-cache-dir
|
| 23 |
-
trl peft accelerate bitsandbytes wandb datasets \
|
| 24 |
-
huggingface_hub torch transformers
|
| 25 |
|
| 26 |
-
RUN pip install --no-cache-dir
|
| 27 |
-
git+https://github.com/Jayant-kernel/DECEIT-the-ai-truth-environment-.git
|
| 28 |
|
| 29 |
COPY train.py .
|
| 30 |
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
|
|
|
|
| 3 |
ENV PYTHONUNBUFFERED=1
|
| 4 |
ENV HF_HOME=/tmp/huggingface
|
| 5 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 6 |
ENV PIP_CACHE_DIR=/tmp/pip-cache
|
| 7 |
+
ENV HOME=/tmp
|
| 8 |
|
| 9 |
+
RUN apt-get update && apt-get install -y git build-essential && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
WORKDIR /app
|
| 12 |
|
| 13 |
+
RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cu121
|
| 14 |
+
|
| 15 |
+
RUN pip install --no-cache-dir trl peft accelerate bitsandbytes wandb datasets huggingface_hub transformers
|
|
|
|
| 16 |
|
| 17 |
+
RUN pip install --no-cache-dir "unsloth[colab-new] @ git+https://github.com/unslothai/unsloth.git" --no-deps
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
RUN pip install --no-cache-dir git+https://github.com/Jayant-kernel/DECEIT-the-ai-truth-environment-.git
|
|
|
|
| 20 |
|
| 21 |
COPY train.py .
|
| 22 |
|