mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-04-20 07:07:16 +00:00

* Support build as user * Update enter.sh * Update Dockerfile * Update enter.sh * Update entry.sh
31 lines
969 B
Docker
31 lines
969 B
Docker
FROM ubuntu:18.04
|
|
|
|
# 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 \
|
|
software-properties-common \
|
|
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - \
|
|
&& add-apt-repository "deb https://download.docker.com/linux/ubuntu $(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 \
|
|
wget patch vim cpio python unzip rsync bc bzip2 ncurses-dev sudo \
|
|
git make g++ file perl bash binutils locales qemu-utils bison flex \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Init entry
|
|
COPY scripts/entry.sh /usr/sbin/
|
|
ENTRYPOINT ["/usr/sbin/entry.sh"]
|
|
|
|
# Get buildroot
|
|
WORKDIR /build
|