mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-14 05:20:21 +00:00
30 lines
930 B
Docker
30 lines
930 B
Docker
FROM ubuntu:16.04
|
|
|
|
RUN locale-gen en_US.UTF-8
|
|
ENV LANG en_US.UTF-8
|
|
|
|
# Install docker
|
|
# https://docs.docker.com/engine/installation/linux/ubuntu/#install-using-the-repository
|
|
RUN apt-get update && apt-get install -y \
|
|
apt-transport-https \
|
|
ca-certificates \
|
|
curl \
|
|
software-properties-common \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
VOLUME /var/lib/docker
|
|
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
|
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
|
RUN apt-get update && apt-get install -y docker-ce && rm -rf /var/lib/apt/lists/*
|
|
|
|
# setup arm binary support
|
|
RUN apt-get update && apt-get install -y \
|
|
qemu-user-static \
|
|
binfmt-support \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
RUN mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc \
|
|
&& update-binfmts --enable qemu-arm
|
|
|
|
COPY run-docker.sh
|
|
|
|
WORKDIR /docker
|