Dockerfile.dapper 931 B

1234567891011121314151617181920212223
  1. FROM rancher/os-debianconsole-base
  2. # FROM amd64=ubuntu:xenial arm64=arm64v8/ubuntu:xenial
  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 KERNEL_URL=https://github.com/DieterReuter/rpi64-kernel/releases/download/v20180426-171616/4.9.80-hypriotos-v8.tar.gz
  13. ENV BOOTLOADER_URL=https://github.com/DieterReuter/rpi-bootloader/releases/download/v20180320-071222/rpi-bootloader.tar.gz
  14. RUN curl -fL ${KERNEL_URL} > /source/assets/kernel.tar.gz
  15. RUN curl -fL ${BOOTLOADER_URL} > /source/assets/rpi-bootfiles.tar.gz
  16. WORKDIR /source
  17. CMD ["./scripts/build.sh"]