Dockerfile 1.08 KB
Newer Older
1 2 3 4
FROM debian:sid

MAINTAINER VideoLAN roots <roots@videolan.org>

Konstantin Pavlov's avatar
Konstantin Pavlov committed
5 6 7 8 9
# jenkins-specific part
RUN apt-get update && \
    apt-get install -y openssh-server && \
    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 && \
10 11
    mkdir -p /var/run/sshd

Konstantin Pavlov's avatar
Konstantin Pavlov committed
12 13
RUN apt-get update && \
    apt-get install -y openjdk-8-jdk && \
14 15 16 17 18 19 20 21 22
    apt-get clean -y && rm -rf /var/lib/apt/lists/*

RUN adduser --quiet jenkins && \
    echo "jenkins:jenkins" | chpasswd

EXPOSE 22

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

Konstantin Pavlov's avatar
Konstantin Pavlov committed
23
# build-specific part
24 25
COPY enforce-static.sh /

Konstantin Pavlov's avatar
Konstantin Pavlov committed
26 27 28 29 30 31 32 33
RUN echo "deb http://ftp.fr.debian.org/debian/ sid main" > /etc/apt/sources.list

RUN apt-get update && \
    apt-get -y install gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tools \
    lua5.2-dev lua5.2 libtool automake autoconf autopoint make gettext \
    pkg-config qt4-dev-tools qt4-default git subversion cmake cvs libwine-dev \
    wine-development wine zip nsis bzip2 p7zip-full && \
    apt-get clean -y && rm -rf /var/lib/apt/lists/*
34 35

RUN /enforce-static.sh