Abdallah4z commited on
Commit
631ae7d
·
1 Parent(s): f9ade9b

Fix Dockerfile: single-stage build so gunicorn binary is in PATH

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -1,18 +1,14 @@
1
- # Use multi-stage build for smaller image
2
- FROM python:3.11-slim AS builder
3
-
4
- WORKDIR /app
5
- COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
7
-
8
  FROM python:3.11-slim
 
9
  WORKDIR /app
10
 
11
  RUN apt-get update && apt-get install -y --no-install-recommends \
12
  build-essential \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
- COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
 
 
16
  COPY . .
17
 
18
  ENV OPENBLAS_NUM_THREADS=1
 
 
 
 
 
 
 
 
1
  FROM python:3.11-slim
2
+
3
  WORKDIR /app
4
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
  build-essential \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
+ COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
  COPY . .
13
 
14
  ENV OPENBLAS_NUM_THREADS=1