1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/cmak/Dockerfile

38 lines
1021 B
Docker
Raw Normal View History

2020-02-20 13:29:06 +02:00
#
# Dockerfile for cmak
#
2022-07-08 10:40:33 +02:00
FROM debian:bullseye
2021-03-25 12:47:11 +02:00
MAINTAINER EasyPi Software Foundation
2020-02-20 13:29:06 +02:00
2022-07-08 10:40:33 +02:00
ARG SCALA_VERSION=2.12.16
ARG SBT_VERSION=1.6.2
ARG CMAK_VERSION=3.0.0.6
2020-02-20 13:29:06 +02:00
RUN set -xe \
&& apt update \
2020-02-21 13:03:53 +02:00
&& apt install -y openjdk-11-jre-headless curl wget \
2020-02-20 13:29:06 +02:00
&& wget -q https://downloads.lightbend.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.deb -O scala.deb \
&& wget -q https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb -O sbt.deb \
&& dpkg -i scala.deb sbt.deb \
&& rm scala.deb sbt.deb \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /opt/cmak
RUN set -xe \
&& mkdir src \
2020-02-21 13:03:53 +02:00
&& curl -sSL https://github.com/yahoo/CMAK/archive/$CMAK_VERSION.tar.gz | tar xz --strip 1 -C src \
2020-02-20 13:29:06 +02:00
&& cd src \
&& sbt clean universal:packageZipTarball \
&& cd .. \
&& tar xzf src/target/universal/cmak-$CMAK_VERSION.tgz --strip 1 \
&& rm -rf src
VOLUME /opt/cmak/conf
EXPOSE 9000
ENTRYPOINT ["bin/cmak"]
2020-02-21 13:03:53 +02:00
CMD ["-Dconfig.file=conf/application.conf", "-Dhttp.port=9000", "-Dpidfile.path=/dev/null"]