alisaleem97 commited on
Commit
d7fa3e8
·
verified ·
1 Parent(s): 38cfb6f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -1,6 +1,13 @@
1
  # Use the official Python 3.11 slim image
2
  FROM python:3.11-slim
3
 
 
 
 
 
 
 
 
4
  # Create a non-root user (required by Hugging Face Spaces and best practice for security)
5
  RUN useradd -m -u 1000 user
6
  WORKDIR /home/user/app
 
1
  # Use the official Python 3.11 slim image
2
  FROM python:3.11-slim
3
 
4
+ # Install system dependencies needed to compile python packages (like pycairo)
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ gcc \
7
+ pkg-config \
8
+ libcairo2-dev \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
  # Create a non-root user (required by Hugging Face Spaces and best practice for security)
12
  RUN useradd -m -u 1000 user
13
  WORKDIR /home/user/app