chrisxx commited on
Commit
99b7515
·
1 Parent(s): 03ee2a9

Add libevent-dev and verify eventlet installation

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM nvidia/cuda:12.1.0-base-ubuntu22.04
2
 
3
  # Install Python 3.11, pip, and build tools
4
  RUN apt-get update && \
5
- apt-get install -y python3.11 python3.11-dev python3-pip build-essential && \
6
  ln -sf /usr/bin/python3.11 /usr/bin/python && \
7
  ln -sf /usr/bin/pip3 /usr/bin/pip && \
8
  pip install --upgrade pip setuptools wheel && \
@@ -13,6 +13,7 @@ WORKDIR /app
13
  # Install dependencies
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt && \
 
16
  rm -rf ~/.cache/pip
17
 
18
  # Copy source code
 
2
 
3
  # Install Python 3.11, pip, and build tools
4
  RUN apt-get update && \
5
+ apt-get install -y python3.11 python3.11-dev python3-pip build-essential libevent-dev && \
6
  ln -sf /usr/bin/python3.11 /usr/bin/python && \
7
  ln -sf /usr/bin/pip3 /usr/bin/pip && \
8
  pip install --upgrade pip setuptools wheel && \
 
13
  # Install dependencies
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt && \
16
+ python -c "import eventlet; print('eventlet version:', eventlet.__version__)" && \
17
  rm -rf ~/.cache/pip
18
 
19
  # Copy source code