hardened_malloc/Dockerfile

25 lines
745 B
Docker
Raw Normal View History

2025-02-05 19:22:12 +01:00
ARG VERSION=2025020200
2025-01-25 18:26:22 +01:00
FROM alpine:latest
LABEL maintainer="Lukas Raub titanz@pm.me"
ARG VERSION
ARG CONFIG_NATIVE=false
ARG VARIANT=default
WORKDIR /root/hardened_malloc
ADD --keep-git-dir=true https://github.com/GrapheneOS/hardened_malloc.git#${VERSION} .
RUN apk -U upgrade \
&& apk --no-cache add build-base git gnupg openssh-keygen \
&& rm -rf /var/cache/apk/* \
&& wget -q https://grapheneos.org/allowed_signers -O grapheneos_allowed_signers
RUN --network=none \
git config gpg.ssh.allowedSignersFile grapheneos_allowed_signers \
&& git verify-tag $(git describe --tags) \
&& make CONFIG_NATIVE=${CONFIG_NATIVE} VARIANT=${VARIANT} \
&& mkdir -p /install \
&& mv out/libhardened_malloc.so /install