-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
55 lines (47 loc) · 1.24 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
50
51
52
53
54
55
## Copyright (c) 2018 Joscha Middendorf
FROM debian:stretch
MAINTAINER Joscha Middendorf <joscha.middendorf@me.com>
RUN mkdir -p /opt/iobroker/
WORKDIR /opt/iobroker/
## Install Node
RUN \
## update and upgrade APT
apt-get update \
&& apt-get -qqy dist-upgrade \
\
## Install dependencies
&& apt-get -qqy install \
curl \
screenfetch \
gnupg \
\
&& curl -sL https://deb.nodesource.com/setup_8.x | bash - \
\
&& apt-get -qqy install \
build-essential \
libavahi-compat-libdnssd-dev \
libudev-dev \
libpam0g-dev \
nodejs \
\
## Clean up APT when done
&& apt-get autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
\
## Customize console
&& echo "alias ll='ls -lah --color=auto'" >> /root/.bashrc \
&& echo "screenfetch" >> /root/.bashrc
## Install IoBroker
#RUN \
# npm install iobroker --unsafe-perm \
# && npm i --production --unsafe-perm \
# \
# ## Extract instalation for later intitialisation
# && tar -czf /root/iobrokerBase.tgz * \
# && rm -R *
COPY scripts/run.sh /root/
RUN chmod +x /root/run.sh
VOLUME /opt/iobroker/
EXPOSE 8081 8082 8083 8084
CMD /root/run.sh