# Get the latest alpine build FROM alpine:latest # Copy the xcookie to your container to use for your X session # This line can be removed if not intended to be used on Desktop with GUI COPY xcookie /tmp/ # Add the necessary packages # Can remove xauth, st, xclid and ttf-liberation if not intended to be used on Desktop with GUI RUN apk add xauth st xclip gnupg pass ttf-liberation # Add the user to start your app # Can skip adding your user to the video group if not intended to be used on Desktop with GUI RUN adduser pass -D ; addgroup pass pass ; addgroup pass video # Add the xcookie to the session of the user we just created RUN su -c "xauth add $(cat /tmp/xcookie)" pass # Use the user we just configured USER pass # Start it all # This line can be chanhed to: 'CMD /bin/sh' if not intended to be used on Desktop with GUI CMD st