FROM debian:stable-slim

RUN adduser lza;

### configure SLUB Debian Repository
RUN apt-get update; \
    apt-get install -y --no-install-recommends gnupg wget git python3 ansible sudo; \
    wget -O - http://sdvdebianrepo.slub-dresden.de/deb-repository/pub.gpg.key | apt-key add - ; \
    echo "deb http://sdvdebianrepo.slub-dresden.de/deb-repository bullseye main" > /etc/apt/sources.list.d/slub.list; \
    apt-get update;
    #apt-get -y --no-install-recommends install python3-pip python3-virtualenv;

RUN echo "lza     ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/lza-user

#RUN mkdir /opt/venv/ && cd /opt/venv/; \
#    virtualenv -p python3 molecule; \
#    . /opt/venv/molecule/bin/activate; \
#    pip3 install ansible molecule molecule-docker;

USER lza
