# Thanks to https://vsupalov.com/docker-arg-vs-env/
ARG DEBIAN_FRONTEND=noninteractive
FROM ubuntu:bionic
# FROM ubuntu:focal
ENV TERM=linux
ENV PYTHONUNBUFFERED=1
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
# ENV LANG=C.UTF-8
ENV TZ=Europe/Brussels
RUN apt-get update -y
RUN apt-get upgrade -y
RUN apt-get install -y tzdata locales-all
RUN apt-get install -y python3-pip apt-utils
RUN pip3 install virtualenv

# Install sudo package and create a user lino
RUN apt-get install -y sudo
RUN adduser --disabled-password --gecos '' lino
RUN adduser lino sudo
RUN adduser lino www-data
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
