Skip to content

Instantly share code, notes, and snippets.

@punitsoni
Created May 11, 2017 07:17
Show Gist options
  • Save punitsoni/422222a0dda22ab29b8d325113ea080e to your computer and use it in GitHub Desktop.
Save punitsoni/422222a0dda22ab29b8d325113ea080e to your computer and use it in GitHub Desktop.
punits-ubuntu-dockerfile
#
# image for ubuntu desktop interactive
#
FROM ubuntu:16.04
MAINTAINER "Punit Soni <[email protected]>"
# install basic packages
RUN apt-get update && \
apt-get install -y sudo vim git tmux
# set locale
ENV LANG C.UTF-8
# add user
RUN useradd --create-home --shell /bin/bash punits && \
echo "punits:default_password_change_me" | chpasswd && \
adduser punits sudo
USER punits
WORKDIR /home/punits
# setup dotfiles
RUN git clone https://github.com/punitsoni/dotfiles.git ~/.dotfiles && \
~/.dotfiles/setup.sh -f
# git config
RUN git config --global user.name "Punit Soni" && \
git config --global user.email "[email protected]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment