mirror of
https://github.com/linuxserver/docker-netbootxyz.git
synced 2026-02-20 03:17:24 +08:00
35 lines
864 B
Docker
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 /
|