forked from nextthingco/wifi-connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-debian
44 lines (32 loc) · 811 Bytes
/
Dockerfile-debian
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
FROM arm32v7/debian
ADD qemu-arm-static /usr/bin/qemu-arm-static
RUN \
cat /etc/issue \
&& apt-get update \
&& apt-get install -y \
curl \
gpg \
dnsmasq \
hostapd \
iproute2 \
iw \
libdbus-1-dev \
libexpat-dev \
rfkill \
python \
build-essential \
git \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash \
&& apt-get install -y nodejs
RUN mkdir -p /usr/src/app/
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN JOBS=MAX npm install --unsafe-perm --production \
&& npm cache clean
COPY bower.json .bowerrc /usr/src/app/
RUN ./node_modules/.bin/bower --allow-root install \
&& ./node_modules/.bin/bower --allow-root cache clean
COPY . /usr/src/app/
RUN ./node_modules/.bin/coffee -c ./src
CMD bash start