Dockerfile.dapper 945 B

123456789101112131415161718192021222324252627
  1. FROM rancher/os-debianconsole-base
  2. # FROM amd64=debian:jessie arm64=aarch64/debian:jessie arm=armhf/debian:jessie
  3. ENV DAPPER_RUN_ARGS --privileged
  4. ENV DAPPER_OUTPUT dist
  5. RUN apt-get update -y
  6. RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
  7. ca-certificates curl dosfstools tree zip
  8. RUN mkdir -p /source/assets
  9. # RancherOS for ARM
  10. RUN curl -fL https://releases.rancher.com/os/latest/rootfs_arm.tar.gz > /source/assets/rootfs_arm.tar.gz
  11. #COPY rootfs_arm.tar.gz /source/assets/rootfs_arm.tar.gz
  12. # see https://packagecloud.io/Hypriot/rpi/?filter=debs
  13. ENV URL=https://packagecloud.io/Hypriot/rpi/packages/debian/jessie/
  14. # 4.4.27-hypriotos-v7+
  15. ENV VER=20170119-202035
  16. RUN curl -fL ${URL}/raspberrypi-kernel_${VER}_armhf.deb/download \
  17. > /source/assets/kernel.deb
  18. RUN curl -fL ${URL}/raspberrypi-bootloader_${VER}_armhf.deb/download \
  19. > /source/assets/bootloader.deb
  20. WORKDIR /source
  21. CMD ["./scripts/build.sh"]