sk16er commited on
Commit
19facee
·
verified ·
1 Parent(s): 6a1c98d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
- FROM python:3.9-slim
 
2
 
3
  # Install system dependencies for RDKit
4
- # Using libgl1 instead of the obsolete libgl1-mesa-glx
5
  RUN apt-get update && apt-get install -y \
6
  libxrender1 \
7
  libxext6 \
@@ -12,6 +12,7 @@ WORKDIR /app
12
 
13
  # Copy requirements and install
14
  COPY requirements.txt .
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # Copy application code
@@ -24,5 +25,4 @@ RUN mkdir -p checkpoints
24
  EXPOSE 7860
25
 
26
  # Run the application
27
- # Ensuring port 7860 is used consistently
28
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Change from python:3.9-slim to 3.11
2
+ FROM python:3.11-slim
3
 
4
  # Install system dependencies for RDKit
 
5
  RUN apt-get update && apt-get install -y \
6
  libxrender1 \
7
  libxext6 \
 
12
 
13
  # Copy requirements and install
14
  COPY requirements.txt .
15
+ RUN pip install --no-cache-dir --upgrade pip
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
  # Copy application code
 
25
  EXPOSE 7860
26
 
27
  # Run the application
 
28
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]