Skip to content

Instantly share code, notes, and snippets.

@unicodeFun
Created April 14, 2024 02:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unicodeFun/9001782603f9a69015288ea279495b0b to your computer and use it in GitHub Desktop.
Save unicodeFun/9001782603f9a69015288ea279495b0b to your computer and use it in GitHub Desktop.
If, on your #RPi you run #Ubuntu, & you want to run #Firefox from the Raspberry Pi OS in get media access, this seems to work for me.
FROM arm64v8/debian:bookworm
ENV TZ="America/New_York"
RUN useradd user
RUN mkdir /home/user
RUN chown user:user /home/user
COPY raspi.list /etc/apt/sources.list.d/raspi.list
COPY raspberrypi-archive-stable.gpg /etc/apt/trusted.gpg.d/raspberrypi-archive-stable.gpg
RUN apt-get update
RUN apt-get upgrade --yes
RUN apt-get install --yes neofetch
RUN apt-get install --yes perl-modules pipewire pipewire-bin pipewire-alsa alsa-utils firefox
RUN apt-get install --yes rp-bookshelf evince xdg-utils
USER user
#CMD ["/usr/bin/firefox"]
CMD ["/bin/bash"]
# You might need to do:
# xhost +local:docker
# To get X11 things to work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment