Skip to content

Commit e6007ec

Browse files
committed
🐛 fix: 불필요한 라이브러리 제거
1 parent 9afc198 commit e6007ec

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

Dockerfile

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,27 @@ FROM python:3.12-slim AS base
55
WORKDIR /app
66

77
# Install system dependencies for OpenCV and PDF processing
8-
RUN apt-get update && apt-get install -y \
8+
RUN apt-get update && apt-get install -y --no-install-recommends \
99
# Build essentials
10-
build-essential \
1110
gcc \
1211
g++ \
13-
# SQLite3 (for ChromaDB)
14-
sqlite3 \
15-
libsqlite3-dev \
16-
# OpenCV dependencies
12+
# OpenCV and image processing dependencies
1713
libgl1-mesa-glx \
1814
libglib2.0-0 \
1915
libsm6 \
2016
libxext6 \
21-
libxrender-dev \
17+
libxrender1 \
2218
libgomp1 \
23-
# PDF and image processing
19+
# PDF and OCR tools
2420
poppler-utils \
2521
tesseract-ocr \
2622
tesseract-ocr-kor \
27-
# Additional dependencies for PyMuPDF
28-
libgtk-3-0 \
29-
libnotify-dev \
30-
libwebp-dev \
31-
zlib1g-dev \
32-
libjpeg-dev \
33-
libopenjp2-7-dev \
34-
libpng-dev \
35-
libtiff-dev \
23+
# Image format libraries
24+
libjpeg62-turbo \
25+
libpng16-16 \
26+
libtiff6 \
27+
libwebp7 \
28+
libopenjp2-7 \
3629
# Clean up
3730
&& rm -rf /var/lib/apt/lists/*
3831

0 commit comments

Comments
 (0)