Gagandeep12 commited on
Commit
301336a
·
verified ·
1 Parent(s): 396abf9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -4,11 +4,13 @@ FROM python:3.10-slim
4
  # Set working directory
5
  WORKDIR /app
6
 
7
- # Install system dependencies (for PyPDF2 + requests)
8
  RUN apt-get update && apt-get install -y \
9
  build-essential \
10
  libpoppler-cpp-dev \
11
  pkg-config \
 
 
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
  # Copy requirements first (for caching layers)
@@ -20,8 +22,8 @@ RUN pip install --no-cache-dir -r requirements.txt
20
  # Copy project files
21
  COPY . .
22
 
23
- # Expose Hugging Face default port
24
  EXPOSE 7860
25
 
26
- # Start Flask app
27
  CMD ["python", "app.py"]
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
+ # Install system dependencies + certificates
8
  RUN apt-get update && apt-get install -y \
9
  build-essential \
10
  libpoppler-cpp-dev \
11
  pkg-config \
12
+ ca-certificates \
13
+ && update-ca-certificates \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
  # Copy requirements first (for caching layers)
 
22
  # Copy project files
23
  COPY . .
24
 
25
+ # Expose port
26
  EXPOSE 7860
27
 
28
+ # Run Flask app
29
  CMD ["python", "app.py"]