2019-05-05 09:10:03 +00:00
|
|
|
FROM ubuntu:xenial
|
|
|
|
# FROM arm64=arm64v8/ubuntu:xenial
|
2017-03-22 04:17:51 +00:00
|
|
|
|
|
|
|
ENV DAPPER_RUN_ARGS --privileged
|
|
|
|
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
|
|
|
|
RUN mkdir -p /source/assets
|
|
|
|
|
|
|
|
# RancherOS for ARM
|
|
|
|
#RUN curl -fL https://releases.rancher.com/os/latest/rootfs_arm64.tar.gz > /source/assets/rootfs_arm64.tar.gz
|
|
|
|
COPY rootfs_arm64.tar.gz /source/assets/rootfs_arm64.tar.gz
|
|
|
|
|
2019-05-14 08:41:42 +00:00
|
|
|
ENV KERNEL_URL=https://github.com/Jason-ZW/os-rpi-kernel/releases/download/v4.14.114-rancher/4.14.114-rancheros-v8.tar.gz
|
|
|
|
ENV BOOTLOADER_URL=https://github.com/Jason-ZW/os-rpi-kernel/releases/download/v4.14.114-rancher/rpi-bootloader.tar.gz
|
2017-03-22 04:17:51 +00:00
|
|
|
|
2019-02-19 04:26:51 +00:00
|
|
|
RUN curl -fL ${KERNEL_URL} > /source/assets/kernel.tar.gz
|
|
|
|
RUN curl -fL ${BOOTLOADER_URL} > /source/assets/rpi-bootfiles.tar.gz
|
2017-03-22 04:17:51 +00:00
|
|
|
|
|
|
|
WORKDIR /source
|
|
|
|
CMD ["./scripts/build.sh"]
|