Skip to content

Instantly share code, notes, and snippets.

@GithubMrxia
Last active May 21, 2020 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GithubMrxia/ff5fecade5ba08c3fd80950e1ea3b26e to your computer and use it in GitHub Desktop.
Save GithubMrxia/ff5fecade5ba08c3fd80950e1ea3b26e to your computer and use it in GitHub Desktop.
docker alpine 基础镜像
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
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