Rework the build scripts and dockerfiles with generic embedded targets
This commit is contained in:
27
Dockerfile.rpi.bookworm
Normal file
27
Dockerfile.rpi.bookworm
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM arm32v7/debian:bookworm
|
||||
|
||||
ENV TARGET=rpi
|
||||
ENV DISTRO=bookworm
|
||||
|
||||
COPY scripts/install-base-deps.sh /opt/scripts/
|
||||
RUN /bin/bash -c /opt/scripts/install-base-deps.sh && \
|
||||
apt-get install -y --no-install-recommends gnupg && \
|
||||
echo "deb http://archive.raspberrypi.org/debian/ $DISTRO main" >> /etc/apt/sources.list && \
|
||||
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 82B129927FA3303E && \
|
||||
apt-get update && \
|
||||
apt-get install -y --no-install-recommends libraspberrypi-dev linux-libc-dev && \
|
||||
apt-get clean -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY dav1d /opt/dav1d
|
||||
COPY FFmpeg-rpi /opt/FFmpeg
|
||||
COPY SDL2 /opt/SDL2
|
||||
COPY SDL_ttf /opt/SDL_ttf
|
||||
|
||||
COPY scripts/build-deps.sh /opt/scripts/
|
||||
RUN /bin/bash -c /opt/scripts/build-deps.sh
|
||||
|
||||
COPY scripts/build-package.sh /opt/scripts/
|
||||
|
||||
VOLUME "/out"
|
||||
ENTRYPOINT [ "/bin/bash", "-c", "/opt/scripts/build-package.sh" ]
|
||||
Reference in New Issue
Block a user