1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:34 +02:00
dockerfiles/openhab/Dockerfile
2017-05-08 07:05:07 +08:00

26 lines
612 B
Docker

#
# Dockerfile for openhab
#
FROM java:jre-alpine
MAINTAINER kev <noreply@easypi.pro>
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"]