mike23415 commited on
Commit
0f00e4e
·
verified ·
1 Parent(s): c770f0d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -5
Dockerfile CHANGED
@@ -1,15 +1,20 @@
1
- FROM python:3.10-slim
2
 
3
  RUN apt-get update && apt-get install -y \
4
  tesseract-ocr \
5
  poppler-utils \
6
- libgl1 \
 
 
 
 
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /app
10
- COPY . /app
11
 
 
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- EXPOSE 7860
15
- CMD ["python", "app.py"]
 
 
1
+ FROM python:3.9-slim
2
 
3
  RUN apt-get update && apt-get install -y \
4
  tesseract-ocr \
5
  poppler-utils \
6
+ gcc \
7
+ libglib2.0-0 \
8
+ libsm6 \
9
+ libxext6 \
10
+ libxrender-dev \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  WORKDIR /app
 
14
 
15
+ COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ COPY app.py .
19
+
20
+ CMD ["python", "app.py"]