-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
51 lines (41 loc) · 1.54 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
47
48
49
50
51
#use latest armv7hf compatible OS
FROM balenalib/armv7hf-debian:stretch
#dynamic build arguments coming from the /hook/build file
ARG BUILD_DATE
ARG VCS_REF
#metadata labels
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/HilscherAutomation/netPI-teamviewer" \
org.label-schema.vcs-ref=$VCS_REF
#enable building ARM container on x86 machinery on the web (comment out next line if built on Raspberry)
RUN [ "cross-build-start" ]
#version
ENV HILSCHERNETPI_TEAMVIEWER 1.0.0
#labeling
LABEL maintainer="netpi@hilscher.com" \
version=$HILSCHERNETPI_TEAMVIEWER \
description="TeamViewer"
#TeamViewer default parameter
ENV TEAMVIEWER_LICENSE show
ENV TEAMVIEWER_PASSWD 12345678
#install dpkg & fbterm
RUN apt-get update \
&& apt-get install -y dpkg \
#install TeamViewer
&& curl -fSL -o /tmp/teamviewer-host_armhf.deb https://dl.tvcdn.de/download/linux/version_14x/teamviewer-host_14.1.9025_armhf.deb \
&& dpkg -i /tmp/teamviewer-host_armhf.deb || apt-get install -yq --no-install-recommends -f \
#remove TeamViewer login details created during build process
&& rm /opt/teamviewer/config/* \
&& rm /opt/teamviewer/logfiles/* \
#clean up
&& rm -rf /tmp/* \
&& apt-get -yqq autoremove \
&& apt-get -y clean \
&& rm -rf /var/lib/apt/lists/*
#set entrypoint
COPY "./init.d/*" /etc/init.d/
ENTRYPOINT ["/etc/init.d/entrypoint.sh"]
#set STOPSGINAL
STOPSIGNAL SIGTERM
#stop processing ARM emulation (comment out next line if built on Raspberry)
RUN [ "cross-build-end" ]