amine_dubs
commited on
Commit
·
d1eab55
1
Parent(s):
d121cb4
Add Rust (cargo) and build tools to Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -5,9 +5,10 @@ FROM python:3.13-alpine
|
|
5 |
# All subsequent commands (COPY, RUN, CMD) use this path
|
6 |
WORKDIR /app
|
7 |
|
8 |
-
# Install system dependencies
|
9 |
-
|
10 |
-
#
|
|
|
11 |
|
12 |
# Copy only the requirements file first to leverage Docker cache
|
13 |
COPY backend/requirements.txt /app/requirements.txt
|
|
|
5 |
# All subsequent commands (COPY, RUN, CMD) use this path
|
6 |
WORKDIR /app
|
7 |
|
8 |
+
# Install system dependencies including Rust and build tools
|
9 |
+
RUN apk add --no-cache cargo build-base
|
10 |
+
# Example for PyMuPDF (uncomment if needed, might require different packages on Alpine 3.13+):
|
11 |
+
# RUN apk add --no-cache mujs-dev freetype-dev harfbuzz-dev jpeg-dev openjpeg-dev zlib-dev tiff-dev lcms2-dev
|
12 |
|
13 |
# Copy only the requirements file first to leverage Docker cache
|
14 |
COPY backend/requirements.txt /app/requirements.txt
|