docker/alpine/Dockerfile-glibc
2021-03-03 13:57:50 +08:00

19 lines
620 B
Plaintext
Executable File

FROM frolvlad/alpine-glibc:alpine-3.12_glibc-2.28
MAINTAINER kennylee <kennylee26@gmail.com>
# 使用阿里云镜像
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# Install base packages
RUN apk --no-cache update && \
apk --no-cache upgrade && \
apk --no-cache add curl bash tzdata tar unzip && \
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
echo -ne "Alpine Linux 3.12 image. (`uname -rsv`)\n" >> /root/.built && \
rm -fr /tmp/* /var/cache/apk/*
# Define bash as default command
CMD ["/bin/bash"]