-
Notifications
You must be signed in to change notification settings - Fork 42
/
DockerFileRasp
45 lines (39 loc) · 2.46 KB
/
DockerFileRasp
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
# Stage 1: Setting up the environment and copying necessary files from Raspberry Pi OS
# If you want to choose 32 bit Rasbian then change this line accordingly. Otherwise compilation will fail
# In this file it is 64 bit -> 2024-07-04-raspios-bookworm-arm64.img
FROM arm64v8/debian:bookworm
# Avoid interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive
# Create a log file
RUN touch /build.log
# Update the package list and install necessary packages
RUN { \
echo "deb http://deb.debian.org/debian bookworm main contrib non-free" > /etc/apt/sources.list && \
echo "deb-src http://deb.debian.org/debian bookworm main contrib non-free" >> /etc/apt/sources.list && \
echo "deb http://security.debian.org/debian-security bookworm-security main contrib non-free" >> /etc/apt/sources.list && \
echo "deb-src http://security.debian.org/debian-security bookworm-security main contrib non-free" >> /etc/apt/sources.list && \
apt-get update && \
apt-get full-upgrade -y && \
apt-get install -y \
libboost-all-dev libudev-dev libinput-dev libts-dev libmtdev-dev \
libjpeg-dev libfontconfig1-dev libssl-dev libdbus-1-dev libglib2.0-dev \
libxkbcommon-dev libegl1-mesa-dev libgbm-dev libgles2-mesa-dev \
mesa-common-dev libasound2-dev libpulse-dev gstreamer1.0-omx \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-alsa \
libvpx-dev libsrtp2-dev libsnappy-dev libnss3-dev "^libxcb.*" \
flex bison libxslt-dev libc6-arm64-cross ruby gperf libbz2-dev libcups2-dev \
libatkmm-1.6-dev libxi6 libxcomposite1 libfreetype6-dev libicu-dev \
libsqlite3-dev libxslt1-dev libavcodec-dev libavformat-dev libswscale-dev \
libx11-dev freetds-dev libpq-dev libiodbc2-dev firebird-dev \
libxext-dev libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev \
libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev \
libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev \
libxcb-sync1 libxcb-sync-dev libxcb-render-util0 libxcb-render-util0-dev \
libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev libxcb-randr0-dev \
libxcb-glx0-dev libxi-dev libdrm-dev libxcb-xinerama0 libxcb-xinerama0-dev \
libatspi2.0-dev libxcursor-dev libxcomposite-dev libxdamage-dev \
libxss-dev libxtst-dev libpci-dev libcap-dev libxrandr-dev \
libdirectfb-dev libaudio-dev libxkbcommon-x11-dev gdbserver; \
} 2>&1 | tee -a /build.log
WORKDIR /build
RUN tar cvfz rasp.tar.gz -C / lib usr/include usr/lib