【docker】docker alpine 镜像初始化

alpine

构建初始化镜像

1
2
3
4
5
6
7
8
9
10
11
FROM alpine:3.8
MAINTAINER xcmelody@qq.com
# 更换阿里源
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
# 如果在proxy环境下
# RUN HTTP_PROXY=http://$IP:$PORT apk add --no-cache vim
RUN apk update
RUN apk add --no-cache vim
RUN apk add --no-cache openssh

EXPOSE 22