Dockerfile 1.09 KB
Newer Older
1
FROM debian:stretch
2

3
ENV IMAGE_DATE=201710021800
4

5 6
MAINTAINER VideoLAN roots <roots@videolan.org>

7 8
RUN echo "deb http://ftp.fr.debian.org/debian/ stretch main" > /etc/apt/sources.list && \
    echo "deb-src http://ftp.fr.debian.org/debian/ stretch main" >> /etc/apt/sources.list && \
9 10 11 12
    echo "deb http://ftp.fr.debian.org/debian stretch-updates main" >> /etc/apt/sources.list && \
    echo "deb-src http://ftp.fr.debian.org/debian stretch-updates main" >> /etc/apt/sources.list && \
    echo "deb http://security.debian.org stretch/updates main" >> /etc/apt/sources.list && \
    echo "deb-src http://security.debian.org stretch/updates main" >> /etc/apt/sources.list && \
13
    apt-get update && \
14
    apt-get install -y openssh-server openjdk-8-jdk lftp ca-certificates && \
15 16 17 18 19 20 21 22 23 24
    apt-get clean -y && rm -rf /var/lib/apt/lists/* && \
    sed -i 's|session    required     pam_loginuid.so|session    optional     pam_loginuid.so|g' /etc/pam.d/sshd && \
    mkdir -p /var/run/sshd && \
    adduser --quiet jenkins && \
    echo "jenkins:jenkins" | chpasswd

# Standard SSH port
EXPOSE 22

CMD ["/usr/sbin/sshd", "-D"]