Verified Commit 07a83653 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add tabula script

parent a112b832
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -3,6 +3,14 @@ FROM python:3.12 AS base
# We will use /app as our main directory within the Docker container
WORKDIR /app

# Install Java and tabula-java
RUN apt-get update && \
    apt-get install -y default-jre && \
    rm -rf /var/lib/apt/lists/*

ADD https://github.com/tabulapdf/tabula-java/releases/download/v1.0.5/tabula-1.0.5-jar-with-dependencies.jar /opt/
COPY ./tabula.sh /bin/tabula

# First, copy and install only the requirements...
RUN pip install --upgrade pip setuptools
COPY requirements.txt .

tabula.sh

0 → 100755
+2 −0
Original line number Diff line number Diff line
#!/bin/sh
java -jar /opt/tabula-1.0.5-jar-with-dependencies.jar $1