gopalswami commited on
Commit
13477e3
·
1 Parent(s): 13628e5

Refactor Dockerfile to improve package installation process and clean up APT lists

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -3,7 +3,8 @@ FROM python:3.12-slim
3
  WORKDIR /app
4
 
5
  # Install system dependencies including those needed for OCR and ML models
6
- RUN apt-get update && apt-get install -y \
 
7
  curl \
8
  poppler-utils \
9
  libgl1-mesa-glx \
@@ -11,8 +12,9 @@ RUN apt-get update && apt-get install -y \
11
  libsm6 \
12
  libxext6 \
13
  libxrender-dev \
14
- libgomp1 \
15
- && rm -rf /var/lib/apt/lists/*
 
16
 
17
  # Install poetry
18
  RUN pip install poetry
 
3
  WORKDIR /app
4
 
5
  # Install system dependencies including those needed for OCR and ML models
6
+ RUN apt-get update && \
7
+ apt-get install -y --no-install-recommends \
8
  curl \
9
  poppler-utils \
10
  libgl1-mesa-glx \
 
12
  libsm6 \
13
  libxext6 \
14
  libxrender-dev \
15
+ libgomp1 && \
16
+ apt-get clean && \
17
+ rm -rf /var/lib/apt/lists/*
18
 
19
  # Install poetry
20
  RUN pip install poetry