-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 768 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 768 Bytes
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
28
29
30
31
32
33
#
# Scala and sbt Dockerfile
#
# https://github.com/hseeberger/scala-sbt
#
# Pull base image
FROM openjdk:8-jdk-alpine
ENV SCALA_VERSION 2.12.7
# Install Scala
## Piping curl directly in tar
RUN \
apk update && apk add curl && \
curl -fsL https://downloads.lightbend.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz | tar xfz - -C /root/ && \
echo >> /root/.bashrc && \
echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> /root/.bashrc
# Scala expects this file
# RUN touch /usr/lib/jvm/java-8-openjdk-amd64/release
#
# Copy app jars
ADD build/distributions/mesos-actor-*.tar ./
ENV MESOS_ACTOR_OPTS -Dconfig.resource=application_ha.conf
ENV LIBPROCESS_IP 0.0.0.0
ENV HOST 0.0.0.0
ENV PORT_2551 2551
CMD ./mesos-actor-*/bin/mesos-actor
EXPOSE 8080