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

Virtual Disk images are often used on Windows and/or Mac platforms where xz is not a widely known file ending and also not supported by dafault. Use zip which is much better known. Keep using xz for boards since those are not meant to be extracted by users but directly used in Etcher. Also keep using xz for qcow2, since qcow2 is mostly used on Linux platforms where xz is available by default and zip usually needs an extra package.
52 lines
1.2 KiB
Docker
52 lines
1.2 KiB
Docker
FROM debian:buster
|
|
|
|
# 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 | apt-key add - \
|
|
&& add-apt-repository "deb https://download.docker.com/linux/debian $(lsb_release -cs) stable" \
|
|
&& 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 \
|
|
make \
|
|
ncurses-dev \
|
|
patch \
|
|
perl \
|
|
python \
|
|
rsync \
|
|
sudo \
|
|
unzip \
|
|
zip \
|
|
wget \
|
|
qemu-utils \
|
|
openssh-client \
|
|
vim \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Init entry
|
|
COPY scripts/entry.sh /usr/sbin/
|
|
ENTRYPOINT ["/usr/sbin/entry.sh"]
|
|
|
|
# Get buildroot
|
|
WORKDIR /build
|