amine_dubs commited on
Commit
d1eab55
·
1 Parent(s): d121cb4

Add Rust (cargo) and build tools to Dockerfile

Browse files
Files changed (1) hide show
  1. 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 that might be needed by Python packages on Alpine
9
- # Example for PyMuPDF: RUN apk add --no-cache musl-dev freetype-dev harfbuzz-dev jpeg-dev openjpeg-dev zlib-dev tiff-dev lcms2-dev
10
- # RUN apk add --no-cache some-alpine-package
 
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