Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

feat(server): install tesseract cli in production image (#626)

Corentin Thomasset11ad13058e4d
diff --git a/apps/papra-server/Dockerfile b/apps/papra-server/Dockerfile
index 94bcd8f9..39d65a47 100644
--- a/apps/papra-server/Dockerfile
+++ b/apps/papra-server/Dockerfile
@@ -58,6 +58,11 @@ FROM base
ENV NODE_ENV="production"
ENV PORT=1221
+# Install Tesseract OCR
+RUN apt-get update -qq && \
+ apt-get install --no-install-recommends -y tesseract-ocr tesseract-ocr-all && \
+ rm -rf /var/lib/apt/lists/*
+
# Copy built application from production deployment
COPY --from=build /app/production /app