-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (47 loc) · 1.46 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
52
#
# RaspPi OS (Debian Bullseye + RaspiOS components)
#
FROM debian:bullseye-slim
# Duplicate deb line as deb-src
RUN cat /etc/apt/sources.list | sed "s/^deb\ /deb-src /" >> /etc/apt/sources.list
RUN echo "deb http://archive.raspberrypi.org/debian/ bullseye main" >> /etc/apt/sources.list
RUN echo "deb-src http://archive.raspberrypi.org/debian/ bullseye main" >> /etc/apt/sources.list
ADD raspberrypi-archive-stable.gpg /etc/apt/trusted.gpg.d/raspberrypi-archive-stable.gpg
# Install common build utilities
RUN apt update
RUN apt dist-upgrade -yy
RUN DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata
RUN DEBIAN_FRONTEND=noninteractive eatmydata \
apt install -y --no-install-recommends \
build-essential \
ca-certificates \
debhelper \
devscripts \
emacs-nox \
fakeroot \
fish \
fd-find \
git \
kbd \
less \
procps \
pkg-config \
silversearcher-ag \
zile
RUN DEBIAN_FRONTEND=noninteractive eatmydata \
apt install -y --no-install-recommends \
raspberrypi-archive-keyring \
rpi-wayland \
sudo \
kodi \
kodi-addon-dev \
kodi-inputstream-adaptive \
kodi-bin \
libgl1-mesa-dri \
libraspberrypi-bin \
udev
# The build script sets USER/UID so we can easily map to the host environment.
ARG USER
ARG UID
# Add the user hardcoded
RUN useradd -u ${UID} -U ${USER} -G audio,video,sudo,kvm