-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (41 loc) · 1.64 KB
/
Dockerfile
File metadata and controls
51 lines (41 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM debian:trixie-slim AS build
LABEL org.opencontainers.image.url="https://github.com/misotolar/docker-ipxe-builder"
LABEL org.opencontainers.image.description="Custom iPXE firmware build container"
LABEL org.opencontainers.image.authors="Michal Sotolar <michal@sotolar.com>"
ENV IPXE_VERSION=2.0.0
ARG SHA256=9ed6d029be901a0ccc87cb2e5f9c774620f30f84ebdd507c6dd3e1e6229b7bd5
ADD https://github.com/ipxe/ipxe/archive/refs/tags/v$IPXE_VERSION.tar.gz /tmp/ipxe.tar.gz
ARG WIMBOOT_VERSION=2.9.0
ARG WIMBOOT_SHA256=abe92880c0208b608cdc0f94e903b8b727d554b70d700606ad0484971713f870
ADD https://github.com/ipxe/wimboot/releases/download/v$WIMBOOT_VERSION/wimboot /build/wimboot/wimboot
ENV PRODUCT_NAME=""
ENV PRODUCT_SHORT_NAME=""
ENV PRODUCT_URI="https://ipxe.org"
ENV PRODUCT_TAG_LINE="Open Source Network Boot Firmware"
ARG DEBIAN_FRONTEND=noninteractive
ARG APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
WORKDIR /build/ipxe
RUN set -ex; \
sed -i 's/^Types: deb/Types: deb deb-src/' /etc/apt/sources.list.d/debian.sources; \
apt-get update -y; \
apt-get upgrade -y; \
apt-get install --no-install-recommends -y \
ca-certificates \
openssl \
syslinux \
; \
apt-get build-dep -y \
ipxe \
; \
echo "$SHA256 */tmp/ipxe.tar.gz" | sha256sum -c -; \
tar xf /tmp/ipxe.tar.gz --strip-components=1; \
echo "$WIMBOOT_SHA256 */build/wimboot/wimboot" | sha256sum -c -; \
chmod 644 /build/wimboot/wimboot; \
rm -rf \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*
COPY resources/entrypoint.sh /usr/local/bin/entrypoint.sh
WORKDIR /build/ipxe/src
ENTRYPOINT ["entrypoint.sh"]
CMD ["/dest"]