Skip to content

Commit

Permalink
feat: add generic Dockerfile and entrypoint script
Browse files Browse the repository at this point in the history
  • Loading branch information
escalate committed Jan 24, 2018
1 parent ef639de commit 5424e1b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
ARG DEVICE_NAME

FROM resin/${DEVICE_NAME}-openjdk

LABEL maintainer="Felix Boerner <[email protected]>"

ARG HA_BRIDGE_VERSION

WORKDIR /habridge

RUN [ "cross-build-start" ]

RUN curl \
--silent \
--fail \
--location \
--output ha-bridge.jar \
https://github.com/bwssytems/ha-bridge/releases/download/v${HA_BRIDGE_VERSION}/ha-bridge-${HA_BRIDGE_VERSION}.jar

RUN [ "cross-build-end" ]

COPY /docker-entrypoint.sh /

EXPOSE 80

ENTRYPOINT [ "/docker-entrypoint.sh" ]
5 changes: 5 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -e -E -u -C -o pipefail

exec /usr/bin/java "$@" -jar /habridge/ha-bridge.jar

0 comments on commit 5424e1b

Please sign in to comment.