-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjava11_linux.Dockerfile
More file actions
24 lines (22 loc) · 931 Bytes
/
java11_linux.Dockerfile
File metadata and controls
24 lines (22 loc) · 931 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
# Pinned to the final focal-based Adoptium JDK 11 build.
# Focal is required because the alex-p Tesseract PPA does not publish for jammy or
# newer Ubuntu codenames.
FROM eclipse-temurin:11.0.27_6-jdk-focal
# We need Tesseract 4.1.x
RUN apt-get update \
&& apt-get install software-properties-common -y \
&& add-apt-repository ppa:alex-p/tesseract-ocr
RUN apt-get update \
&& apt-get install tesseract-ocr git -y \
&& rm -rf /var/lib/apt/lists/*
ENV GRADLE_OPTS=-Dkotlin.compiler.execution.strategy="in-process"
# Add a new user group "nonRoot".
# Add a new user "nonRoot" with user id 1234 to this group.
# This user will be used by bitbucket-pipelines.yml files.
RUN groupadd --gid 1234 newgroup
RUN useradd -g newgroup --uid 1234 -m nonRootUser
# change the working directory to the home of the new user
WORKDIR /home/nonRootUser
# makes the image runs with the nonRootUser as default user
USER nonRootUser
RUN whoami