github.com/chasestarr/deis@v1.13.5-0.20170519182049-1d9e59fbdbfc/builder/rootfs/Dockerfile (about)

     1  FROM docker:1.8-dind
     2  
     3  # install common packages
     4  RUN apk add --no-cache curl bash sudo
     5  
     6  # install etcdctl
     7  RUN curl -sSL -o /usr/local/bin/etcdctl https://s3-us-west-2.amazonaws.com/get-deis/etcdctl-v0.4.9 \
     8      && chmod +x /usr/local/bin/etcdctl
     9  
    10  # install confd
    11  RUN curl -sSL -o /usr/local/bin/confd https://github.com/kelseyhightower/confd/releases/download/v0.10.0/confd-0.10.0-linux-amd64 \
    12      && chmod +x /usr/local/bin/confd
    13  
    14  RUN apk add --no-cache \
    15      coreutils \
    16      device-mapper \
    17      e2fsprogs \
    18      git \
    19      iptables \
    20      udev \
    21      lxc \
    22      openssh \
    23      udev \
    24      util-linux \
    25      xz
    26  
    27  
    28  # configure ssh server
    29  RUN mkdir -p /var/run/sshd && rm -rf /etc/ssh/ssh_host*
    30  
    31  # install git and configure gituser
    32  ENV GITHOME /home/git
    33  ENV GITUSER git
    34  RUN adduser -D -h $GITHOME $GITUSER
    35  RUN mkdir -p $GITHOME/.ssh && chown git:git $GITHOME/.ssh
    36  RUN chown -R $GITUSER:$GITUSER $GITHOME
    37  
    38  # define the execution environment
    39  # use VOLUME to remove /var/lib/docker from copy-on-write for performance
    40  # we don't want to stack overlay filesystems
    41  VOLUME /var/lib/docker
    42  
    43  ENTRYPOINT ["/bin/entry"]
    44  CMD ["/bin/boot"]
    45  EXPOSE 2223
    46  RUN addgroup -g 2000 slug && adduser -D -u 2000 -G slug slug
    47  
    48  # $GITUSER is added to docker group to use docker without sudo and to slug
    49  # group in order to share resources with the slug user
    50  RUN addgroup -S docker
    51  RUN addgroup $GITUSER docker
    52  RUN addgroup $GITUSER slug
    53  RUN passwd -u git
    54  
    55  COPY . /
    56  
    57  ENV DEIS_RELEASE 1.13.4