FROM ubuntu:bionic # silent debconf warnings ARG DEBIAN_FRONTEND=noninteractive # Setup user ubuntu, with password ubuntu RUN adduser --disabled-password --gecos "" ubuntu RUN echo "ubuntu:ubuntu" | chpasswd RUN usermod -aG sudo ubuntu # Setup vimrc COPY .vimrc /home/ubuntu/.vimrc # Update and install software packages for SP RUN apt-get update RUN apt-get upgrade -y RUN apt-get install -y apt-utils man RUN apt-get install -y locales sudo openssh-server wget curl screen htop RUN apt-get install -y vim git build-essential gdb valgrind astyle clang-format RUN mkdir /var/run/sshd # Set locale to Traditional Chinese RUN locale-gen en_US.UTF-8 RUN locale-gen zh_TW.UTF-8 ENV LANG en_US.UTF-8 ENV LANGUAGE en_US:en ENV LC_ALL en_US.UTF-8 # Change to zsh for default shell RUN apt-get update && apt-get install -y zsh git-core RUN git clone https://github.com/robbyrussell/oh-my-zsh.git /home/ubuntu/.oh-my-zsh \ && cp /home/ubuntu/.oh-my-zsh/templates/zshrc.zsh-template /home/ubuntu/.zshrc \ && chsh -s /bin/zsh ubuntu RUN echo "export LC_ALL=zh_TW.UTF-8" >> /home/ubuntu/.zshrc RUN echo "export LANG=zh_TW.UTF-8" >> /home/ubuntu/.zshrc RUN echo "export LANGUAGE=zh_TW.UTF-8" >> /home/ubuntu/.zshrc RUN apt-get autoremove RUN apt-get clean # Expose SSH port EXPOSE 22 CMD ["/usr/sbin/sshd", "-D"]