forked from balena-io-modules/node-docker-delta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.node8.test
57 lines (41 loc) · 1.42 KB
/
Dockerfile.node8.test
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
56
57
FROM balenalib/intel-nuc-node:8
# Install Systemd
ENV container docker
RUN apt-get update && apt-get install -y --no-install-recommends \
systemd-sysv \
&& rm -rf /var/lib/apt/lists/*
# We never want these to run in a container
# Feel free to edit the list but this is the one we used
RUN systemctl mask \
dev-hugepages.mount \
sys-fs-fuse-connections.mount \
sys-kernel-config.mount \
display-manager.service \
systemd-logind.service \
systemd-remount-fs.service \
getty.target \
graphical.target
COPY test/systemd/entry.sh /usr/bin/entry.sh
COPY test/systemd/balena.service /etc/systemd/system/balena.service
RUN systemctl enable /etc/systemd/system/balena.service
STOPSIGNAL 37
ENTRYPOINT ["/usr/bin/entry.sh"]
ENV INITSYSTEM on
VOLUME /var/lib/docker
RUN apt-get update \
&& apt-get install -y aufs-tools rsync iptables wget git \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKER_VERSION 17.03.0-ce
RUN wget -q -O /tmp/docker-${DOCKER_VERSION}.tgz https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz \
&& tar xvfz /tmp/docker-${DOCKER_VERSION}.tgz -C /tmp \
&& cp -r /tmp/docker/* /usr/bin/ \
&& rm -rf /tmp/docker \
&& chmod +x /usr/bin/docker*
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN npm install --unsafe-perm && npm cache clean --force
COPY test/services/ /etc/systemd/system/
ENV INITSYSTEM on
RUN systemctl enable docker
CMD docker info