diff --git a/Dockerfile b/Dockerfile index b0b71c1faa8..be938396f05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,21 +6,19 @@ # It will reresolve all dependencies on every change (as opposed to Dockerfile.development) # but it ultimately results in a smaller docker image. # -FROM openjdk:8-jdk +FROM buildpack-deps:jessie-curl COPY . /marathon WORKDIR /marathon -# TODO: line below starting touch /usr/local/bin/systemctl is a necessary hack for the installation -# of mesos. We need to find a better solution. https://jira.mesosphere.com/browse/MARATHON-7694 - RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E56151BF && \ - touch /usr/local/bin/systemctl && chmod +x /usr/local/bin/systemctl && \ + echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list && \ echo "deb http://repos.mesosphere.com/debian jessie-unstable main" | tee /etc/apt/sources.list.d/mesosphere.list && \ echo "deb http://repos.mesosphere.com/debian jessie-testing main" | tee -a /etc/apt/sources.list.d/mesosphere.list && \ echo "deb http://repos.mesosphere.com/debian jessie main" | tee -a /etc/apt/sources.list.d/mesosphere.list && \ MESOS_VERSION=$(sed -n 's/^.*MesosDebian = "\(.*\)"/\1/p'