Dockerfile 717 Bytes
Newer Older
1 2 3 4
FROM debian:sid

MAINTAINER VideoLAN roots <roots@videolan.org>

5
ENV IMAGE_DATE=201711121045
6

7 8 9
RUN echo "deb http://ftp.fr.debian.org/debian/ sid main" > /etc/apt/sources.list && \
    echo "deb-src http://ftp.fr.debian.org/debian/ sid main" >> /etc/apt/sources.list && \
    apt-get update && \
10
    apt-get install -y openssh-server openjdk-8-jdk lftp ca-certificates curl && \
11 12 13 14 15 16 17 18 19 20
    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"]