Skip to content

Commit 64f0e85

Browse files
committed
Updated for Apache Tika 1.28 and Java 17
1 parent d5c562a commit 64f0e85

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
FROM ubuntu:focal as base
22
RUN apt-get update
33

4-
ENV TIKA_VERSION 1.27
4+
ENV TIKA_VERSION 1.28
55
ENV TIKA_SERVER_JAR tika-server
66

77
88

9-
# "random" uid/gid hopefully not used anywhere else
10-
ARG UID_GID="35002:35002"
11-
129
FROM base as dependencies
1310

1411
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install openjdk-17-jre-headless gdal-bin tesseract-ocr \
@@ -44,6 +41,8 @@ RUN apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
4441
ENV TIKA_VERSION=$TIKA_VERSION
4542
COPY --from=fetch_tika /${TIKA_SERVER_JAR}-${TIKA_VERSION}.jar /tika-server-${TIKA_VERSION}.jar
4643

44+
# "random" uid/gid hopefully not used anywhere else
45+
ARG UID_GID="35002:35002"
4746
USER $UID_GID
4847
EXPOSE 9998
4948
ENTRYPOINT [ "/bin/sh", "-c", "exec java -jar /${TIKA_SERVER_JAR}-${TIKA_VERSION}.jar -h 0.0.0.0 $0 $@"]

0 commit comments

Comments
 (0)