You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

#
# Dockerfile to add a precompiled glibc to an alpinelinux container.
# Copyright (C) 2020 by Nils Freydank <nils+container@holgersson.xyz>,
# published according to terms of the MIT license.
#
# Note: This copyright and license only affects the docker/podman file itself.
# The installed softwarecomponents have their own respective licsenses!
FROM alpine-x86_64:3.11.6 as builder
ENV GLIBC_VERSION="2.31-r0"
ENV ALPINE_ARCH="x86_64"
RUN apk add --no-cache --update-cache ca-certificates
# Grab upstreams GnuPG pubkey to verify downloads later on.
#RUN wget -q -O - https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub | \
# gpg --import -
RUN wget -O /etc/apk/keys/sgerrand.rsa.pub \
https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk
RUN apk add glibc-${GLIBC_VERSION}.apk
# Cleanup
RUN rm -rf ~/.gnupg /var/cache/* glibc-${GLIBC_VERSION}.apk \
/etc/apk/keys/sgerrand.rsa.pub
### Create the actual image.
FROM scratch
MAINTAINER Nils Freydank "nils+container@holgersson.xyz"
COPY --from=builder . .