forked from d2iq-archive/marathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (23 loc) · 1.03 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#
# This is the official docker image that is used for production deployments of docker.
#
# It has the marathon startup script as entrypoint.
#
# It will reresolve all dependencies on every change (as opposed to Dockerfile.development)
# but it ultimately results in a smaller docker image.
#
FROM java:8-jdk
COPY . /marathon
WORKDIR /marathon
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF && \
echo "deb http://repos.mesosphere.io/debian jessie main" | tee /etc/apt/sources.list.d/mesosphere.list && \
echo "deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list && \
apt-get update && \
apt-get install --no-install-recommends -y --force-yes mesos=0.24.1-0.2.35.debian81 sbt && \
apt-get clean && \
sbt -Dsbt.log.format=false assembly && \
mv $(find target -name 'marathon-assembly-*.jar' | sort | tail -1) ./ && \
rm -rf target/* ~/.sbt ~/.ivy2 && \
mv marathon-assembly-*.jar target && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ENTRYPOINT ["./bin/start"]