You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by dm...@apache.org on 2021/11/18 21:51:39 UTC

[tika-docker] 01/02: TIKA-3417: Run tika-server as non-root user. Merging PR by Philip Southam

This is an automated email from the ASF dual-hosted git repository.

dmeikle pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika-docker.git

commit e8e9e795534691830515cc8f4b7720c80ecad1c4
Merge: 0f73923 957afd8
Author: David Meikle <dm...@apache.org>
AuthorDate: Thu Nov 18 21:43:48 2021 +0000

    TIKA-3417: Run tika-server as non-root user. Merging PR by Philip Southam

 full/Dockerfile    | 4 +++-
 minimal/Dockerfile | 5 ++++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --cc full/Dockerfile
index c288ea2,e66f9a8..18d7691
--- a/full/Dockerfile
+++ b/full/Dockerfile
@@@ -13,7 -13,9 +13,10 @@@ FROM ubuntu:focal as bas
  RUN apt-get update
  
  FROM base as dependencies
++
+ # "random" uid/gid hopefully not used anywhere else
+ ARG UID_GID="35002:35002"
 -ARG JRE='openjdk-16-jre-headless'
 +ARG JRE='openjdk-17-jre-headless'
  
  RUN DEBIAN_FRONTEND=noninteractive apt-get -y install $JRE gdal-bin tesseract-ocr \
          tesseract-ocr-eng tesseract-ocr-ita tesseract-ocr-fra tesseract-ocr-spa tesseract-ocr-deu
diff --cc minimal/Dockerfile
index cb0fc83,eee52b4..b41b1f2
--- a/minimal/Dockerfile
+++ b/minimal/Dockerfile
@@@ -13,8 -14,9 +14,11 @@@ FROM ubuntu:focal as bas
  RUN apt-get update
  
  FROM base as dependencies
++
+ # "random" uid/gid hopefully not used anywhere else
+ ARG UID_GID="35002:35002"
 -ARG JRE='openjdk-16-jre-headless'
 +ARG JRE='openjdk-17-jre-headless'
 +
  RUN DEBIAN_FRONTEND=noninteractive apt-get -y install $JRE
  
  FROM dependencies as fetch_tika