mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-04-19 14:47:15 +00:00

Using apt-key for managing Debian repo keys has been deprecated for a while now. While it currently works ok, seems to be broken in bookworm. This migrates to storing keys in trusted.gpg.d as recommended by the warning messages when using apt-key.
58 lines
1.4 KiB
Docker
58 lines
1.4 KiB
Docker
FROM debian:bullseye
|
|
|
|
# Set shell
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
# Docker
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
apt-transport-https \
|
|
ca-certificates \
|
|
curl \
|
|
gpg-agent \
|
|
gpg \
|
|
dirmngr \
|
|
software-properties-common \
|
|
&& curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/docker.gpg \
|
|
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/docker.gpg] \
|
|
https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list \
|
|
&& apt-get update && apt-get install -y --no-install-recommends \
|
|
docker-ce \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Build tools
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
bash \
|
|
bc \
|
|
binutils \
|
|
build-essential \
|
|
bzip2 \
|
|
cpio \
|
|
file \
|
|
git \
|
|
graphviz \
|
|
jq \
|
|
make \
|
|
ncurses-dev \
|
|
openssh-client \
|
|
patch \
|
|
perl \
|
|
python3 \
|
|
python3-matplotlib \
|
|
python-is-python3 \
|
|
qemu-utils \
|
|
rsync \
|
|
skopeo \
|
|
sudo \
|
|
unzip \
|
|
vim \
|
|
wget \
|
|
zip \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Init entry
|
|
COPY scripts/entry.sh /usr/sbin/
|
|
ENTRYPOINT ["/usr/sbin/entry.sh"]
|
|
|
|
# Get buildroot
|
|
WORKDIR /build
|