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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -1,23 +1,21 @@
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
 
 
1
+ # Use a lightweight Python base image
2
+ FROM python:3.10-slim
3
 
4
  # Install system dependencies
5
  RUN apt-get update && apt-get install -y \
 
 
6
  git \
7
  curl \
8
  cmake \
9
  build-essential \
 
10
  libopenblas-dev \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  WORKDIR /app
14
 
15
+ # Upgrade pip and install setuptools
16
  RUN pip install --no-cache-dir --upgrade pip setuptools
17
 
18
+ # Install Python requirements
19
  COPY requirements.txt .
20
  RUN pip install --no-cache-dir -r requirements.txt
21