FROM python:3.10-alpine ARG uid=1000 ARG username=sam ENV HOME=/home/$username RUN addgroup --gid $uid --system $username \ && adduser --uid $uid --system $username --ingroup $username \ && addgroup --system $username audio \ && addgroup --system $username video \ && addgroup --system $username disk \ && addgroup --system $username lp \ && addgroup --system $username dialout \ && addgroup --system $username users \ && chown -R $username:$username $HOME ENV PATH=$HOME/.local/bin:$PATH ARG uid=1000 ARG username=sam ENV HOME=/home/$username USER $username WORKDIR $HOME ENV FLEXX_HOSTNAME=0.0.0.0 RUN pip install flexx CMD ["python3", "/usr/local/lib/python3.9/site-packages/flexxamples/demos/demo.py"]