1
0
mirror of https://github.com/rancher/os.git synced 2025-06-27 15:26:50 +00:00
os/scripts/images/raspberry-pi-hypriot/Dockerfile.dapper

27 lines
945 B
Docker
Raw Normal View History

FROM rancher/os-debianconsole-base
# FROM amd64=debian:jessie arm64=aarch64/debian:jessie arm=armhf/debian:jessie
ENV DAPPER_RUN_ARGS --privileged
2016-02-18 16:58:39 +00:00
ENV DAPPER_OUTPUT dist
RUN apt-get update -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates curl dosfstools tree zip
2016-02-18 16:58:39 +00:00
RUN mkdir -p /source/assets
# RancherOS for ARM
#RUN curl -fL https://releases.rancher.com/os/latest/rootfs_arm.tar.gz > /source/assets/rootfs_arm.tar.gz
COPY rootfs_arm.tar.gz /source/assets/rootfs_arm.tar.gz
2016-02-18 16:58:39 +00:00
# see https://packagecloud.io/Hypriot/rpi/?filter=debs
ENV URL=https://packagecloud.io/Hypriot/rpi/packages/debian/jessie/
# 4.4.27-hypriotos-v7+
ENV VER=20170119-202035
RUN curl -fL ${URL}/raspberrypi-kernel_${VER}_armhf.deb/download \
> /source/assets/kernel.deb
RUN curl -fL ${URL}/raspberrypi-bootloader_${VER}_armhf.deb/download \
> /source/assets/bootloader.deb
2016-02-18 16:58:39 +00:00
WORKDIR /source
CMD ["./scripts/build.sh"]