FROM ubuntu:14.04 MAINTAINER Fabian 'x3n' Landau RUN apt-get update && apt-get install -y --no-install-recommends \ software-properties-common \ && rm -rf /var/lib/apt/lists/* RUN add-apt-repository --yes ppa:openjdk-r/ppa RUN apt-get update && apt-get install -y --no-install-recommends \ openssh-server \ openjdk-8-jdk \ && rm -rf /var/lib/apt/lists/* RUN mkdir -p /var/run/sshd RUN sed -i 's|session required pam_loginuid.so|session optional pam_loginuid.so|g' /etc/pam.d/sshd RUN adduser --quiet jenkins RUN echo "jenkins:jenkins" | chpasswd EXPOSE 22 CMD ["/usr/sbin/sshd", "-D"]