a9145fe84c
Image extraction and conversion to formats Multi parallel file execution for all forms so you can input multiple files quickly Any file at all pdf using libreoffice, super powerful Sadly makes docker image larger but worth it OCR PDF using ocr my pdf Works awesomely for adding text to a image Improved compression using ocr my pdf app Settings page with custom download options such as - open in same window - open in new window - download - download as zip Update detection in settings page it should show notification if there is a update (very hidden) UI cleanups Add other image formats to PDF to Image Various fies to icons, and pdf.js usage
58 lines
1.3 KiB
Docker
58 lines
1.3 KiB
Docker
# Build jbig2enc in a separate stage
|
|
FROM debian:bullseye-slim as jbig2enc_builder
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
git \
|
|
automake \
|
|
autoconf \
|
|
libtool \
|
|
libleptonica-dev \
|
|
pkg-config \
|
|
ca-certificates \
|
|
zlib1g-dev \
|
|
make \
|
|
g++
|
|
|
|
RUN git clone https://github.com/agl/jbig2enc && \
|
|
cd jbig2enc && \
|
|
./autogen.sh && \
|
|
./configure && \
|
|
make && \
|
|
make install
|
|
|
|
# Main stage
|
|
FROM openjdk:17-jdk-slim
|
|
|
|
# Install necessary dependencies
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
libreoffice-core \
|
|
libreoffice-common \
|
|
libreoffice-writer \
|
|
libreoffice-calc \
|
|
libreoffice-impress \
|
|
python3-uno \
|
|
python3-pip \
|
|
unoconv \
|
|
pngquant \
|
|
ocrmypdf && \
|
|
pip install --user --upgrade ocrmypdf
|
|
|
|
# Copy the jbig2enc binary from the builder stage
|
|
COPY --from=jbig2enc_builder /usr/local/bin/jbig2 /usr/local/bin/jbig2
|
|
|
|
# Copy the application JAR file
|
|
COPY build/libs/*.jar app.jar
|
|
|
|
# Expose the application port
|
|
EXPOSE 8080
|
|
|
|
# Set environment variables
|
|
ENV LOG_LEVEL=INFO
|
|
|
|
# Run the application
|
|
ENTRYPOINT ["java","-jar","/app.jar","-Dlogging.level=${LOG_LEVEL}"]
|
|
|
|
|
|
|