Rayugacodes commited on
Commit
2e20db1
·
verified ·
1 Parent(s): 36344b2

Revert to python:3.10-slim (was working) + health server prevents timeout

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -1,9 +1,7 @@
1
- FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04
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
- # Install PyTorch with CUDA 12.1 support explicitly
20
- RUN pip3 install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cu121
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 \