Sign inSign up

tgomes95/ubuntu

By tgomes95

•Updated over 5 years ago

My Ubuntu configurations

Image
0

1.0K

tgomes95/ubuntu repository overview

FROM ubuntu:latest

⁠Set DEBIAN_FRONTEND to noninteractive

ENV DEBIAN_FRONTEND noninteractive

⁠Set locale

ENV LANG en_US.UTF-8

ENV LANGUAGE en_US:en

ENV LC_ALL en_US.UTF-8

⁠Update cache

RUN apt-get update

⁠Install essentials

RUN apt-get install -y software-properties-common

RUN apt-get install -y apt-transport-https

RUN apt-get install -y astyle

RUN apt-get install -y cmatrix curl

RUN apt-get install -y dkms

RUN apt-get install -y fzf

RUN apt-get install -y git gcc gdb

RUN apt-get install -y locales language-pack-en language-pack-pt

RUN apt-get install -y make man mercurial

RUN apt-get install -y nano

RUN apt-get install -y openjdk-11-jdk-headless openssh-server

RUN apt-get install -y python3 python3-dev python3-pip

RUN apt-get install -y sudo

RUN apt-get install -y tree

RUN apt-get install -y ufw

RUN apt-get install -y wget

RUN apt-get install -y xsel

RUN apt-get install -y vim vim-gui-common vim-runtime

⁠Configure locale

RUN locale-gen

⁠Install pip packages

RUN sudo pip3 install -U setuptools requests virtualenv

⁠Create a non-root user

RUN useradd --system --create-home --user-group --uid 1000 --shell /bin/bash tgomes95

RUN echo 'tgomes95:passwd' | chpasswd

⁠Add sudo to the non-root user

RUN adduser tgomes95 sudo

⁠Install dotfiles

RUN git clone https://[email protected]/tgomes95/dotfiles.git⁠ /tmp/dotfiles

RUN git clone https://[email protected]/tgomes95/ubuntu.git⁠ /tmp/ubuntu

RUN cat /tmp/ubuntu/dotfiles/bashrc >> /home/tgomes95/.bashrc

RUN mv /tmp/ubuntu/dotfiles/bash_aliases /home/tgomes95/.bash_aliases

RUN mv /tmp/ubuntu/dotfiles/bash_functions /home/tgomes95/.bash_functions

RUN mv /tmp/ubuntu/dotfiles/fzf /home/tgomes95/.fzf

RUN mv /tmp/dotfiles/astylerc /home/tgomes95/.astylerc

RUN mv /tmp/dotfiles/gitconfig /home/tgomes95/.gitconfig

RUN mv /tmp/dotfiles/hgrc /home/tgomes95/.hgrc

⁠Install scripts

RUN git clone https://[email protected]/tgomes95/scripts.git⁠ /home/tgomes95/.bin

RUN rm -rf /home/tgomes95/.bin/.git* /home/tgomes95/.bin/install

⁠Upgrade and clean

RUN apt-get upgrade -y

RUN apt-get autoclean

RUN apt-get autoremove -y

RUN rm -rf /tmp/ubuntu

⁠Set default user and workdir

USER tgomes95

WORKDIR /home/tgomes95

Tag summary

Content type

Image

Digest

Size

615.7 MB

Last updated

over 5 years ago

docker pull tgomes95/ubuntu