forked from ninech/jnlp-slave-with-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
25 lines (21 loc) · 954 Bytes
/
Dockerfile
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
FROM jenkins/jnlp-slave:3.27-1
LABEL maintainer="[email protected]"
ARG DOCKER_VERSION=5:18.09.6~3-0~debian-stretch
ARG DC_VERSION=1.24.0
USER root
RUN apt-get update \
&& apt-get install -qq -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& apt-key fingerprint 0EBFCD88 \
&& add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable" \
&& apt-get update \
&& apt-get install -qq -y --no-install-recommends "docker-ce=${DOCKER_VERSION}" \
&& curl -fsSL https://github.com/docker/compose/releases/download/${DC_VERSION}/docker-compose-`uname -s`-`uname -m` \
-o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*