2016-12-06 13:16:18 +10:00
|
|
|
FROM rancher/os-installer
|
2016-06-06 23:00:15 -07:00
|
|
|
|
2016-06-13 16:33:07 -07:00
|
|
|
ARG VERSION
|
2016-12-04 21:27:06 +10:00
|
|
|
ARG KERNEL_VERSION
|
2016-06-13 16:33:07 -07:00
|
|
|
ENV VERSION=${VERSION}
|
2016-12-04 21:27:06 +10:00
|
|
|
ENV KERNEL_VERSION=${KERNEL_VERSION}
|
2016-06-13 16:33:07 -07:00
|
|
|
|
2016-12-04 21:27:06 +10:00
|
|
|
# TODO: separate out the 3 elements below - so we can mix and match updates
|
2016-12-06 13:16:18 +10:00
|
|
|
RUN rm /dist/ \
|
|
|
|
&& mkdir -p /dist/
|
2016-12-04 21:27:06 +10:00
|
|
|
COPY ./build/vmlinuz-${KERNEL_VERSION} ./build/initrd ./build/ros /dist/
|
2016-12-06 13:16:18 +10:00
|
|
|
|