Spaces:
Sleeping
Sleeping
Revert to python:3.10-slim (was working) + health server prevents timeout
Browse files- Dockerfile +3 -7
Dockerfile
CHANGED
|
@@ -1,9 +1,7 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
|
| 6 |
-
|
| 7 |
ENV HF_HOME=/tmp/hf_cache
|
| 8 |
ENV TRANSFORMERS_CACHE=/tmp/hf_cache
|
| 9 |
ENV TORCH_HOME=/tmp/torch_cache
|
|
@@ -16,10 +14,8 @@ ENV PYTHONUNBUFFERED=1
|
|
| 16 |
RUN mkdir -p /tmp/hf_cache /tmp/torch_cache /tmp/cache /tmp/home && \
|
| 17 |
chmod -R 777 /tmp/hf_cache /tmp/torch_cache /tmp/cache /tmp/home
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
RUN pip3 install --no-cache-dir \
|
| 23 |
transformers \
|
| 24 |
trl \
|
| 25 |
peft \
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
|
|
|
| 5 |
ENV HF_HOME=/tmp/hf_cache
|
| 6 |
ENV TRANSFORMERS_CACHE=/tmp/hf_cache
|
| 7 |
ENV TORCH_HOME=/tmp/torch_cache
|
|
|
|
| 14 |
RUN mkdir -p /tmp/hf_cache /tmp/torch_cache /tmp/cache /tmp/home && \
|
| 15 |
chmod -R 777 /tmp/hf_cache /tmp/torch_cache /tmp/cache /tmp/home
|
| 16 |
|
| 17 |
+
RUN pip install --no-cache-dir \
|
| 18 |
+
torch \
|
|
|
|
|
|
|
| 19 |
transformers \
|
| 20 |
trl \
|
| 21 |
peft \
|