#Get the latest archlinux build FROM archlinux:latest # Copy your xcookie to use your X in the container COPY xcookie /tmp/ # Install the necessary packages (I also like to add hunspell but you can amend this) RUN echo -e "1\nyes" | pacman -Sy xorg-xauth thunderbird hunspell # Add your user to run the app RUN useradd -m thunderbird # Add the xcookie to your user we just created RUN su -c "xauth add $(cat /tmp/xcookie)" thunderbird # Select the user we just configured USER thunderbird # Start it all CMD thunderbird