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

26 lines
612 B
Docker
Raw Normal View History

2016-08-18 08:38:20 +02:00
#
# Dockerfile for openhab
#
FROM java:jre-alpine
2017-05-08 01:05:07 +02:00
MAINTAINER kev <noreply@easypi.pro>
2016-08-18 08:38:20 +02:00
ENV OPENHAB_VERSION 2.0.0-SNAPSHOT
ENV OPENHAB_FILE openhab-online-${OPENHAB_VERSION}.zip
ENV OPENHAB_URL https://openhab.ci.cloudbees.com/job/openHAB-Distribution/lastSuccessfulBuild/artifact/distributions/openhab-online/target/${OPENHAB_FILE}
WORKDIR /app
RUN set -xe \
&& apk add --no-cache curl \
&& curl -sSL $OPENHAB_URL > $OPENHAB_FILE \
&& unzip $OPENHAB_FILE \
&& apk del curl \
&& rm -rf $OPENHAB_FILE
VOLUME /app/conf /app/userdata /app/addons
EXPOSE 8080 8443 5555
CMD ["/app/start.sh"]