amine_dubs
commited on
Commit
·
bd85617
1
Parent(s):
294f2ba
Add libsentencepiece-dev to Dockerfile
Browse files- 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,
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
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
|