-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
35 lines (22 loc) · 1.28 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
FROM node:8.15-slim
RUN apt-get update && apt-get install -y \
git python-dev python-setuptools libyaml-dev libpython2.7-dev nmap unzip socat bridge-utils python-pip python-httplib2 libssl-dev libffi-dev vim
#Fix Vulnerabilities
RUN apt-get install -y procps wget curl gnupg openssl
RUN apt-get install -y curl apt
RUN rm -rf /var/lib/apt/lists/*
RUN npm install -g --unsafe [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] && npm cache --force clean
RUN mkdir -p /var/lib/iotronic/plugins \
&& mkdir -p /var/lib/iotronic/drivers/ \
&& mkdir -p /var/lib/iotronic/.node-red/ \
&& mkdir -p /var/log/iotronic/ \
&& touch /var/log/iotronic/s4t-iotronic.log
WORKDIR /usr/local/lib/node_modules/@mdslab/
RUN git clone --depth=1 git://github.com/MDSLab/s4t-iotronic-standalone.git ./iotronic-standalone
ENV NODE_PATH=/usr/local/lib/node_modules
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
ENV IOTRONIC_HOME=/var/lib/iotronic
EXPOSE 8443 8888
WORKDIR /usr/local/lib/node_modules/@mdslab/iotronic-standalone/
VOLUME /var/lib/iotronic
CMD [ "./bin/server"]