Installing GLIBC
: https://github.com/sgerrand/alpine-pkg-glibc/
Setting the time zone
RUN echo-e "https://mirror.tuna.tsinghua.edu.cn/alpine/latest-stable/main\n\
Https://mirror.tuna.tsinghua.edu.cn/alpine/latest-stable/community ">/etc/apk/repositories
Install Base Packages
RUN apk update && apk--no-cache add tzdata ca-certificates wget \
&& Cp-r-f/usr/share/zoneinfo/asia/shanghai/etc/localtime
Make base image
Dockerfile
From Alpine:latest
RUN echo-e "https://mirror.tuna.tsinghua.edu.cn/alpine/latest-stable/main\n\
Https://mirror.tuna.tsinghua.edu.cn/alpine/latest-stable/community ">/etc/apk/repositories
Install Base Packages
RUN apk Update && apk--no-cache add tzdata ca-certificates wget \
&& cp-r-f/usr/share/zoneinfo/a Sia/shanghai/etc/localtime
RUN wget-q-o/etc/apk/keys/sgerrand.rsa.pub https://raw.githubusercontent.com/ Sgerrand/alpine-pkg-glibc/master/sgerrand.rsa.pub && wget https://github.com/sgerrand/alpine-pkg-glibc/ releases/download/2.27-r0/glibc-2.27-r0.apk && apk add glibc-2.27-r0.apk && rm-f glibc-2.27-r0.apk/ Etc/apk/keys/sgerrand.rsa.pub
Docker build-t hub.linuxeye.com/library/alpine:latest. #生成镜像
Docker push Hub.linuxeye.com/library/alpine:latest #推送私有仓库