Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
1 contributor

Users who have contributed to this file

executable file 71 lines (55 sloc) 1.45 KB
FROM balenalib/%%BALENA_MACHINE_NAME%%
ENV container docker
# Install other apt deps
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-utils \
curl \
dbus \
wget \
xserver-xorg-core \
xserver-xorg-legacy \
xserver-xorg-input-all \
xserver-xorg-video-fbdev \
x11-xserver-utils \
xorg \
chromium-browser \
libxcb-image0 \
libxcb-util0 \
xdg-utils \
libdbus-1-dev \
libcap-dev \
libxtst-dev \
libxss1 \
lsb-release \
fbset \
systemd-sysv \
libexpat-dev && rm -rf /var/lib/apt/lists/*
RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc \
&& echo "" >> /etc/X11/xinit/xserverrc \
&& echo 'exec /usr/bin/X -s 0 dpms -nocursor -nolisten tcp "$@"' >> /etc/X11/xinit/xserverrc
#### advised by balena to add the below for fixing local input issues
RUN systemctl mask \
dev-hugepages.mount \
sys-fs-fuse-connections.mount \
sys-kernel-config.mount \
display-manager.service \
getty@.service \
systemd-logind.service \
systemd-remount-fs.service \
getty.target \
graphical.target
COPY entry.sh /usr/bin/entry.sh
COPY balena.service /etc/systemd/system/balena.service
RUN systemctl enable /etc/systemd/system/balena.service
STOPSIGNAL 37
#VOLUME ["/sys/fs/cgroup"]
ENTRYPOINT ["/usr/bin/entry.sh"]
####
# Move to app dir
WORKDIR /usr/src/app
# Move app to filesystem
COPY ./app ./
## uncomment if you want systemd
ENV INITSYSTEM on
# Start app
CMD ["bash", "/usr/src/app/start.sh"]
You can’t perform that action at this time.