-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (38 loc) · 1.13 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
#FROM debian
FROM ubuntu:16.04
#FROM smartentry/ubuntu:16.04
#FROM rastasheep/ubuntu-sshd:16.04
MAINTAINER Jan Mohs <[email protected]>
ENV Landroid Version 1.0
ENV DEBIAN_FRONTEND noninteractive
ENV TERM xterm
RUN useradd --create-home -s /bin/bash landroid
WORKDIR /home/landroid
USER landroid
#install dependencies
RUN apt-get update && apt-get upgrade -y --force-yes && apt-get install -y --force-yes --no-install-recommends apt-utils
RUN apt-get -y --force-yes install \
wget \
git \
snmpd \
snmp \
vim \
telnet \
usbutils \
libstdc++6 \
npm \
nodejs-legacy \
net-tools \
telnet
RUN mkdir /opt/landroid && \
chown root:root /opt/landroid && \
chmod 777 /opt/landroid && \
cd /opt/landroid && \
git clone -b master https://github.com/axelmohnen/fhem-landroid-s.git
COPY /data/LandroidConf.json /opt/landroid/fhem-landroid-s/LandroidConf.json
RUN cd /opt/landroid/fhem-landroid-s && \
npm install iobroker.landroid-s
#CMD ["nodejs", "/opt/landroid/fhem-landroid-s/LandroidSrv.js"]
#CMD node /opt/landroid/fhem-landroid-s/LandroidSrv.js mower1
ENTRYPOINT [ "nodejs", "/opt/landroid/fhem-landroid-s/LandroidSrv.js" ]
CMD [ "mower1" ]