创建Dockerfile

FROM alpine:3.10

RUN apk add --no-cache bash && \
    wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
    wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-2.30-r0.apk && \
    apk add --no-cache glibc-2.30-r0.apk && \
    rm -rf glibc-2.30-r0.apk

创建镜像

docker build -t alpine-glibc:v1 .

 

最新版可以参考:https://github.com/sgerrand/alpine-pkg-glibc

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐