Last active
May 21, 2020 07:11
-
-
Save GithubMrxia/ff5fecade5ba08c3fd80950e1ea3b26e to your computer and use it in GitHub Desktop.
docker alpine 基础镜像
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.9.6 | |
RUN set -xe \ | |
&& apk add --no-cache --virtual .build-deps \ | |
git \ | |
&& apk add --no-cache \ | |
tzdata \ | |
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | |
&& echo "Asia/Shanghai" > /etc/timezone \ | |
&& apk del .build-deps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:18.04 | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
vim \ | |
wget \ | |
tzdata \ | |
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ | |
&& echo "Asia/Shanghai" > /etc/timezone \ | |
&& rm -r /var/lib/apt/lists/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment