hackergeek98 commited on
Commit
070dad1
·
verified ·
1 Parent(s): cb2d3b1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -10
Dockerfile CHANGED
@@ -1,25 +1,25 @@
1
- # Use a base image with CUDA support (if GPU is available)
2
  FROM nvidia/cuda:12.1.1-base-ubuntu22.04
3
 
4
- # Install Python and system dependencies
5
  RUN apt-get update && apt-get install -y \
6
  python3.10 \
7
  python3-pip \
8
  git \
 
 
 
 
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Set working directory
12
  WORKDIR /app
13
 
14
- # Install Python dependencies
 
 
 
15
  COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Copy code
19
  COPY . .
20
-
21
- # Set Hugging Face token (replace with your token)
22
- ENV HF_TOKEN="your_hf_token_here"
23
-
24
- # Run training on container start
25
  CMD ["python3", "app.py"]
 
 
1
  FROM nvidia/cuda:12.1.1-base-ubuntu22.04
2
 
3
+ # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  python3.10 \
6
  python3-pip \
7
  git \
8
+ curl \
9
+ cmake \
10
+ build-essential \
11
+ libssl-dev \
12
+ libopenblas-dev \
13
  && rm -rf /var/lib/apt/lists/*
14
 
 
15
  WORKDIR /app
16
 
17
+ # Upgrade pip and install setuptools first
18
+ RUN pip install --no-cache-dir --upgrade pip setuptools
19
+
20
+ # Install requirements
21
  COPY requirements.txt .
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
 
24
  COPY . .
 
 
 
 
 
25
  CMD ["python3", "app.py"]