1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| FROM ubuntu:16.04
USER root
RUN apt-get update && \ apt-get -y install sudo vim zsh curl git build-essential openssh-server python-tk python3-tk x11-apps net-tools iputils-ping software-properties-common
RUN echo "X11UseLocalhost no" >> /etc/ssh/sshd_config
ARG UNAME=weepingfish ARG UID=1000 ARG GID=1000 RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME
RUN echo "weepingfish:password" | chpasswd && adduser weepingfish sudo
RUN usermod --home /newhome/weepingfish weepingfish
USER weepingfish WORKDIR /newhome/weepingfish
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
|