Initial - working container.

This commit is contained in:
Jakub Wiewiora
2024-11-09 18:28:47 +01:00
commit 5721df5f8e
15 changed files with 234 additions and 0 deletions

26
container/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM debian:latest
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y supervisor xfce4 xrdp dbus-x11 firefox-esr xfce4-terminal sudo nano; apt clean
# Customize internal desktop
COPY customize/xfce4 /etc/skel/.config/xfce4/
# Create user account
RUN addgroup admin; useradd -m -d /home/user -s /bin/bash -G sudo,admin user
RUN echo 'user:user' | chpasswd
# DBus config
RUN mkdir -p /var/run/dbus
RUN chown messagebus:messagebus /var/run/dbus
RUN dbus-uuidgen > /var/lib/dbus/machine-id
# Sudo config
COPY sudo/* /etc/sudoers.d/*
# Supervisor config
COPY supervisord/* /etc/supervisor/conf.d/
CMD [ "/usr/bin/supervisord", "-n", "-c/etc/supervisor/supervisord.conf" ]