forked from torizon/vscode-torizon-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.sdk
63 lines (53 loc) · 1.64 KB
/
Dockerfile.sdk
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
58
59
60
61
62
63
# ARGUMENTS --------------------------------------------------------------------
ARG BASE_VERSION=3.0.8
ARG IMAGE_ARCH=
ARG GPU=
# TODO: cross compile x86 to arm
# Qt 6 cross toolchain
# We will use emulation here
# BUILD ------------------------------------------------------------------------
FROM --platform=linux/${IMAGE_ARCH} \
torizon/wayland-base${GPU}:${BASE_VERSION} AS Build
ARG IMAGE_ARCH
ARG GPU
# stick to bookworm on /etc/apt/sources.list.d
RUN sed -i 's/sid/bookworm/g' /etc/apt/sources.list.d/debian.sources
# for vivante GPU we need some "special" sauce
RUN apt-get -q -y update && \
if [ "${GPU}" = "-vivante" ]; then \
apt-get -q -y install \
imx-gpu-viv-wayland-dev \
; else \
apt-get -q -y install \
libgl1 \
; fi \
&& \
apt-get clean && apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
# __deps__
RUN apt-get -q -y update && \
apt-get -q -y install \
build-essential \
qmake6 \
qt6-base-private-dev \
qt6-base-dev \
qt6-declarative-dev \
qt6-declarative-private-dev \
libqt6opengl6-dev \
# ADD YOUR PACKAGES HERE
&& \
apt-get clean && apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
# __deps__
# automate for torizonPackages.json
RUN apt-get -q -y update && \
apt-get -q -y install \
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
# __torizon_packages_dev_start__
# __torizon_packages_dev_end__
# DO NOT REMOVE THIS LABEL: this is used for VS Code automation
&& \
apt-get clean && apt-get autoremove && \
rm -rf /var/lib/apt/lists/*
USER torizon
WORKDIR /app