forked from tuxnsk/nodejs_libmodbus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (31 loc) · 960 Bytes
/
Dockerfile
File metadata and controls
38 lines (31 loc) · 960 Bytes
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
############################################################
# Dockerfile to ElephantHead IOT Gateway API server
# Based on debian image
############################################################
# create base Debian image
FROM phusion/baseimage:0.9.18
MAINTAINER Paul Charlton [email protected]
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
RUN apt-get update
RUN apt-get dist-upgrade -y
RUN apt-get clean
# install node.js
RUN apt-get install nodejs -y
RUN apt-get install build-essential -y
RUN apt-get install npm -y
RUN npm -g install npm@latest
RUN apt-get install curl
RUN apt-get clean
RUN curl -sL https://deb.nodesource.com/setup_5.x | bash -
RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN apt-get install nodejs -y
RUN apt-get install libavahi-compat-libdnssd-dev -y
RUN npm install
#
RUN useradd -ms /bin/bash modbus
USER modbus
WORKDIR /home/modbus
COPY . ./
USER root
RUN apt-get install git-core autoconf automake libtool -y