summaryrefslogtreecommitdiffstats
path: root/molecule/default/Dockerfile.raspberrypi.j2
blob: 33475b70693e3effb7d863f573dbd00d34d1e000 (plain) (blame)
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
# Based on the amazing work of geerlingguy <3
# FROM docker.io/geerlingguy/docker-debian12-ansible
FROM docker.io/library/debian:bookworm

ARG DEBIAN_FRONTEND=noninteractive

ENV container docker

RUN apt-get update \
    && apt-get install -y --no-install-recommends \
        systemd python3 parted dosfstools \
    && rm -Rf /var/lib/apt/lists/* \
    && rm -Rf /usr/share/doc \
    && rm -Rf /usr/share/man \
    && apt-get clean

RUN rm -f /lib/systemd/system/multi-user.target.wants/getty.target

# Mimic the Raspberry OS Bookworm default boot (for testing)
RUN mkdir -p /boot/firmware \
    && touch /boot/firmware/kernel8.img \
    && touch /boot/firmware/bootcode.bin \
    && touch /boot/firmware/start.elf

VOLUME ["/sys/fs/cgroup", "/tmp", "/run", "/opt"]

CMD ["/lib/systemd/systemd"]