madankn79 commited on
Commit
620392e
·
1 Parent(s): 82eee86

Initial Commit 5.1.0

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -1,15 +1,23 @@
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
 
5
  COPY . .
6
 
 
7
  RUN apt-get update && apt-get install -y \
 
8
  poppler-utils \
9
  tesseract-ocr \
10
  texlive \
 
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
 
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
 
15
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Set working directory
4
  WORKDIR /app
5
 
6
+ # Copy files into container
7
  COPY . .
8
 
9
+ # Install required system packages (git, poppler-utils, tesseract, LaTeX, etc.)
10
  RUN apt-get update && apt-get install -y \
11
+ git \
12
  poppler-utils \
13
  tesseract-ocr \
14
  texlive \
15
+ libgl1 \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
+ # Install Python packages
19
+ RUN pip install --upgrade pip
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
+ # Start the FastAPI app
23
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]