docker-netbootxyz/Dockerfile.aarch64
2024-06-30 13:47:54 +01:00

35 lines
864 B
Docker

# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.20
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"
# build args
ARG DOWNURL="https://boot.netboot.xyz/ipxe"
RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache \
tftp-hpa && \
echo "**** download netboot payloads ****" && \
wget -O \
/config/netboot.xyz.kpxe \
${DOWNURL}/netboot.xyz.kpxe && \
wget -O \
/config/netboot.xyz.efi \
${DOWNURL}/netboot.xyz.efi && \
echo "**** Permissions ****" && \
chown -R abc:abc \
/config && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
# add local files
COPY /root /