amine_dubs commited on
Commit
bd85617
·
1 Parent(s): 294f2ba

Add libsentencepiece-dev to Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -5,12 +5,16 @@ FROM python:3.13-alpine
5
  # All subsequent commands (COPY, RUN, CMD) use this path
6
  WORKDIR /app
7
 
8
- # Install system dependencies including Rust, build tools, pkgconfig, and cmake
9
- # sentencepiece-dev is not available in Alpine 3.21 repos, removed it.
10
- # The sentencepiece python package will compile from source.
11
- RUN apk add --no-cache cargo build-base pkgconfig cmake
12
- # Example for PyMuPDF (uncomment if needed, might require different packages on Alpine 3.13+):
13
- # RUN apk add --no-cache mujs-dev freetype-dev harfbuzz-dev jpeg-dev openjpeg-dev zlib-dev tiff-dev lcms2-dev
 
 
 
 
14
 
15
  # Set PKG_CONFIG_PATH to help find sentencepiece.pc
16
  ENV PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig
 
5
  # All subsequent commands (COPY, RUN, CMD) use this path
6
  WORKDIR /app
7
 
8
+ # Install system dependencies including Rust, build tools, pkg-config, cmake, and sentencepiece dev libs using apt-get
9
+ RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ rustc \
11
+ cargo \
12
+ build-essential \
13
+ pkg-config \
14
+ cmake \
15
+ libsentecepiece-dev \
16
+ # Clean up apt lists to reduce image size
17
+ && rm -rf /var/lib/apt/lists/*
18
 
19
  # Set PKG_CONFIG_PATH to help find sentencepiece.pc
20
  ENV PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig