Dockerfile

30 lines | 913 B Blame History Raw Download
FROM ubuntu:18.04

RUN apt-get update -qq

RUN apt-get -qq -y install software-properties-common

RUN add-apt-repository ppa:linuxuprising/java -y

RUN apt-get update -qq

RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
RUN echo debconf shared/accepted-oracle-license-v1-2 select true | debconf-set-selections
RUN echo debconf shared/accepted-oracle-license-v1-2 seen true | debconf-set-selections
RUN apt-get -qq -y install oracle-java12-installer

RUN apt-get -qq -y install maven
RUN apt-get -qq -y install git
RUN apt-get -qq -y install curl
RUN apt-get -qq -y install htop

RUN apt-get -qq -y install ssh
RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
RUN mkdir /run/sshd
RUN echo "root:caching-approaches-comparison" | chpasswd

EXPOSE 22

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