# std = slim ∪ {iproute2, ping}
FROM debian:10.7

RUN apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes \
        i3-wm \
        tini \
        xinit \
        xserver-xorg-core \
        xserver-xorg-input-evdev \
    && rm --recursive /var/lib/apt/lists/

#RUN useradd --create-home nonroot \
#    && apt-get update \
#    && apt-get install --no-install-recommends --yes \
#        strace

COPY xorg.conf /etc/X11/

# TODO USER nonroot
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["startx", "/usr/bin/i3"]