Dockerfile.dapper 1.2 KB

1234567891011121314151617181920212223242526272829
  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_arm64.tar.gz > /source/assets/rootfs_arm64.tar.gz
  11. COPY rootfs_arm64.tar.gz /source/assets/rootfs_arm64.tar.gz
  12. ENV URL=https://github.com/DieterReuter/rpi64-kernel/releases/download
  13. ENV VER=v20180319-130037
  14. RUN curl -fL ${URL}/${VER}/4.9.80-hypriotos-v8.tar.gz > /source/assets/kernel.tar.gz
  15. RUN curl -fL ${URL}/${VER}/bootfiles.tar.gz > /source/assets/bootfiles.tar.gz
  16. RUN curl -fL https://github.com/DieterReuter/rpi-bootloader/releases/download/v20180320-071222/rpi-bootloader.tar.gz > /source/assets/rpi-bootfiles.tar.gz
  17. #ENV RPI_URL=https://github.com/raspberrypi/firmware/raw/master/boot
  18. #RUN curl -fL ${RPI_URL}/bootcode.bin > /source/assets/bootcode.bin
  19. #RUN curl -fL ${RPI_URL}/fixup.dat > /source/assets/fixup.dat
  20. #RUN curl -fL ${RPI_URL}/start.elf > /source/assets/start.elf
  21. WORKDIR /source
  22. CMD ["./scripts/build.sh"]