devray11 commited on
Commit
be620bd
·
verified ·
1 Parent(s): d8c8501

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,18 +1,18 @@
1
- # Use Python 3.10 (Matches the pre-built engine link above)
2
- FROM python:3.10-slim
3
 
4
- # Install only basic system tools
5
  RUN apt-get update && apt-get install -y \
6
  libopenblas-dev \
 
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /code
10
 
11
- # Copy and install requirements
12
  COPY ./requirements.txt /code/requirements.txt
13
  RUN pip install --no-cache-dir -r /code/requirements.txt
14
 
15
- # Copy the rest of your app
16
  COPY . .
17
 
18
  # Start the API
 
1
+ # Use Python 3.10 on Debian Bookworm
2
+ FROM python:3.10-slim-bookworm
3
 
4
+ # Install basic math libraries
5
  RUN apt-get update && apt-get install -y \
6
  libopenblas-dev \
7
+ libgomp1 \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
  WORKDIR /code
11
 
12
+ # Install the corrected requirements
13
  COPY ./requirements.txt /code/requirements.txt
14
  RUN pip install --no-cache-dir -r /code/requirements.txt
15
 
 
16
  COPY . .
17
 
18
  # Start the API