-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile-jdk11
29 lines (21 loc) · 876 Bytes
/
Dockerfile-jdk11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM jenkins/jenkins:2.452.1-jdk11
LABEL maintainer="mark.earl.waite@gmail.com"
USER root
# hadolint ignore=DL3008
RUN apt-get clean && apt-get update && apt-get install -y auto-apt-proxy && auto-apt-proxy && apt-get install -y --no-install-recommends \
gnupg \
make \
procps \
wget \
&& rm -rf /var/lib/apt/lists/*
USER jenkins
# Check that expected utilities are available in the image
RUN test -x /usr/bin/pgrep && \
test -x /usr/bin/wget && \
test -x /usr/bin/git-lfs
# $REF (defaults to `/usr/share/jenkins/ref/`) contains all reference configuration we want
# to set on a fresh new installation. Use it to bundle additional plugins
# or config file with your custom jenkins Docker image.
RUN mkdir -p "${REF}/init.groovy.d"
COPY --chown=jenkins:jenkins ref /usr/share/jenkins/ref/
ENV CASC_JENKINS_CONFIG ${JENKINS_HOME}/configuration-as-code/