forked from roflmao/docker-zway-amd64
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (25 loc) · 935 Bytes
/
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
FROM ubuntu:xenial
ENV DEBIAN_FRONTEND noninteractive
ENV zversion=3.0.0-rc24-2-gd8ce5d0
WORKDIR /tmp/
#install deps
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install sharutils tzdata gawk libc-ares2 libavahi-compat-libdnssd-dev libarchive-dev libcurl4-openssl-dev unzip wget python2.7 python-lxml && \
apt-get -y autoremove && apt-get -y autoclean && \
rm -rf /var/lib/apt/lists/*
#install z-way-server
RUN apt-get -y update && \
apt-get -y install wget && \
wget http://razberry.z-wave.me/z-way-server/z-way-server-Ubuntu-v${zversion}.tgz && \
tar -vzxf z-way-server-Ubuntu-v${zversion}.tgz -C /opt && \
apt-get -y autoremove && apt-get -y autoclean && \
rm -rf /var/lib/apt/lists/*
VOLUME /opt/z-way-server/automation/storage
VOLUME /opt/z-way-server/config
VOLUME /var/log
#startup
EXPOSE 8083
ADD startup.sh /startup.sh
RUN chmod +x /startup.sh
ENTRYPOINT /startup.sh