moriire commited on
Commit
f412bec
1 Parent(s): 89999fa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -1
Dockerfile CHANGED
@@ -1,5 +1,21 @@
1
  #FROM python:3.11-slim-bullseye
2
- FROM huggingface/optimum-nvidia
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
4
  python3 \
5
  python3-pip \
 
1
  #FROM python:3.11-slim-bullseye
2
+ FROM nvidia/cuda:12.3.0-devel-ubuntu22.04
3
+
4
+ RUN apt-get update && \
5
+ apt-get -y install \
6
+ git \
7
+ python3.10 \
8
+ python3-pip \
9
+ openmpi-bin \
10
+ libopenmpi-dev
11
+
12
+ COPY . /opt/optimum-nvidia
13
+ WORKDIR /opt/optimum-nvidia
14
+
15
+ RUN pip install --pre --extra-index-url https://pypi.nvidia.com -e '.[quality, tests]' && \
16
+ pip uninstall -y optimum-nvidia && \
17
+ rm -rf /opt/optimum-nvidia
18
+
19
  RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
20
  python3 \
21
  python3-pip \