This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (38 loc) · 1.53 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Based on Scala and sbt Dockerfile
# https://github.com/hseeberger/scala-sbt
# Not directly used because we need Scala 2.11
FROM biggis/base:java8-jre-alpine
MAINTAINER JochenLutz
ARG SCALA_VERSION=2.11.8
ENV SCALA_SHORTVERSION=2.11
ENV SBT_VERSION 0.13.9
ENV CODEKUNSTMQTT_VERSION=3.1
ENV TARGET=/opt/codekunst-mqtt
ARG BUILD_DATE
ARG VCS_REF
LABEL eu.biggis-project.build-date=$BUILD_DATE \
eu.biggis-project.license="MIT" \
eu.biggis-project.name="BigGIS" \
eu.biggis-project.url="http://biggis-project.eu/" \
eu.biggis-project.vcs-ref=$VCS_REF \
eu.biggis-project.vcs-type="Git" \
eu.biggis-project.vcs-url="https://github.com/biggis-project/sensebox-station/CodekunstMQTTAdapter" \
eu.biggis-project.environment="dev" \
eu.biggis-project.version=$CODEKUNSTMQTT_VERSION
# Define working directory
WORKDIR $TARGET
# Install curl
RUN \
set -x && \
apk --update add --virtual build-dependencies coreutils curl && \
curl -L -O https://github.com/biggis-project/sensebox-station/releases/download/Codekunst-MQTT-v$CODEKUNSTMQTT_VERSION/CodekunstMQTTAdapter-assembly-${CODEKUNSTMQTT_VERSION}.jar && \
unzip CodekunstMQTTAdapter-assembly-${CODEKUNSTMQTT_VERSION}.jar import-certificate.sh && \
chmod +x import-certificate.sh && \
./import-certificate.sh /etc/ssl/certs/java/cacerts && \
apk del build-dependencies && \
rm -rf /var/cache/apk/*
ENV PATH $PATH:$TARGET
RUN apk add --no-cache tini
ENTRYPOINT ["/sbin/tini", "--"]
ADD docker-entrypoint.sh $TARGET
CMD ["docker-entrypoint.sh"]