<reponame>pirpedro/git-gadgets
FROM ubuntu:20.04 as base
LABEL maintainer="<NAME> <<EMAIL>>"

RUN apt update && \
  apt install -y sudo curl wget nano git locales

RUN locale-gen en_US en_US.UTF-8 pt_BR.UTF-8

RUN groupadd -g 1000 app \
  && useradd -u 1000 -g app -s /bin/bash -m app \
  && usermod -aG sudo app \
  && echo 'app    ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers \
  && chown -R app:app /home/app \
  && echo 'PATH="${PATH:+${PATH}:}~/.local/bin"' >> /home/app/.bashrc

USER app
