Browse Source

Add 'Dockerfile'

天问 1 week ago
parent
commit
c1e875816c
1 changed files with 15 additions and 0 deletions
  1. 15 0
      Dockerfile

+ 15 - 0
Dockerfile

@@ -0,0 +1,15 @@
+FROM ubuntu:22.04
+
+RUN apt-get update && apt-get install -y \
+    python3 \
+    python3-pip \
+    tesseract-ocr \
+    poppler-utils
+
+RUN pip install ocrmypdf
+
+WORKDIR /app
+
+COPY . .
+
+CMD ocrmypdf