-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (38 loc) · 1.32 KB
/
Dockerfile
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
FROM debian:bookworm-slim AS build
LABEL maintainer="michal@sotolar.com"
ARG VERSION=8fc11d8a4ad41f15af3d081250865f971312d871
ARG URL=https://github.com/ipxe/ipxe
ARG WIMBOOT_VERSION=2.8.0
ARG WIMBOOT_SHA256=74d4bf3d09386ccbbe907d9db59030f8cd8c88f7b4ccb799d386f31def11b3fe
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 "$WIMBOOT_SHA256 */build/wimboot/wimboot" | sha256sum -c -; \
git config --global init.defaultBranch master; \
git clone -c advice.detachedHead=false $URL .; \
git checkout $VERSION; \
rm -rf \
/var/lib/apt/lists/* \
/var/tmp/* \
/tmp/*
COPY resources/builder.sh /usr/local/bin/builder.sh
WORKDIR /build/ipxe/src
ENTRYPOINT ["builder.sh"]
CMD ["/dest"]