STLooo commited on
Commit
07bb87f
·
verified ·
1 Parent(s): 6e0695f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -1,8 +1,6 @@
1
  FROM python:3.10-slim
2
 
3
- apt-get install -y libgl1 libglib2.0-0 poppler-utils
4
-
5
- # 安裝 OpenCV 與 pdf2image 相關系統依賴
6
  RUN apt-get update && apt-get install -y \
7
  libgl1 \
8
  libglib2.0-0 \
@@ -14,8 +12,9 @@ RUN apt-get update && apt-get install -y \
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # 複製程式碼
18
  COPY . /app
19
  WORKDIR /app
20
 
 
21
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ # 安裝系統相依套件(OpenCV + pdf2image 依賴)
 
 
4
  RUN apt-get update && apt-get install -y \
5
  libgl1 \
6
  libglib2.0-0 \
 
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ # 複製程式碼與資源
16
  COPY . /app
17
  WORKDIR /app
18
 
19
+ # 啟動 Gradio 應用
20
  CMD ["python", "app.py"]