-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 813 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (19 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM eclipse-temurin:25-jdk
ENV DEBIAN_FRONTEND=noninteractive
# Install Tesseract
RUN apt-get update && apt-get install -y \
tesseract-ocr \
wget \
libleptonica-dev \
&& rm -rf /var/lib/apt/lists/*
# Create tessdata_best directory
RUN mkdir -p /usr/share/tesseract-ocr/4.00/tessdata_best
# Download tessdata_best English model
RUN wget -O /usr/share/tesseract-ocr/4.00/tessdata_best/eng.traineddata \
https://github.com/tesseract-ocr/tessdata_best/raw/main/eng.traineddata
# Point Tesseract (and Tess4J) to tessdata_best
ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/4.00/tessdata_best
COPY build/libs/camelot-all.jar /camelot.jar
VOLUME ["/home/camelot"]
WORKDIR /home/camelot
ENTRYPOINT ["java", "-XX:MaxRAMPercentage=90", "--enable-native-access=ALL-UNNAMED", "-jar", "/camelot.jar"]