-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.Chromium
45 lines (34 loc) · 1.28 KB
/
Dockerfile.Chromium
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
ARG IMAGE_ARCH=linux/arm
# For arm64 use:
# ARG IMAGE_ARCH=linux/arm64
ARG BASE_IMAGE=wayland-base
# For iMX7 and iMX6ULL-emmc use:
# ARG BASE_IMAGE=debian
# For iMX8 use:
# ARG BASE_IMAGE=wayland-base-vivante
ARG IMAGE_TAG=2
# For iMX7 and iMX6ULL-emmc use:
# ARG IMAGE_TAG=2-bullseye
FROM --platform=$IMAGE_ARCH torizon/$BASE_IMAGE:$IMAGE_TAG
# Needs to come after FROM!
ARG BUILD_TYPE=wayland
# For iMX7 and iMX6ULL-emmc use:
# ARG BUILD_TYPE=x11
# If x11 build (iMX7 and iMX6ULL-emmc), use Chromium from Debian feed.
# Chromium-X11 is installed from the testing feed to get the latest version
# because version 99.0.4844.74-1~deb11u1 from stable feed is crashing.
RUN test "$BUILD_TYPE" = "x11" && \
echo "deb http://deb.debian.org/debian testing main" >> /etc/apt/sources.list && \
sed -i '/feeds.toradex.com/d' /etc/apt/sources.list || true
# Install Chromium
RUN apt-get -y update && \
apt-get install -y --no-install-recommends chromium chromium-sandbox && \
apt-get clean && apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
# Unpack the virtual keyboard extension
ADD chrome-virtual-keyboard.tar.gz /chrome-extensions
COPY start-chromium.sh /usr/bin/start-browser
USER torizon
ENV DISPLAY=:0
ENTRYPOINT ["/usr/bin/start-browser"]
CMD ["http://www.toradex.com"]