Created
January 4, 2019 02:42
-
-
Save duckythescientist/43fddc06f820852848e8830d50639903 to your computer and use it in GitHub Desktop.
Dockerfile for Kurso de Esperanto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dockerfile for Kurso de Esperanto | |
# !!!!!!!!! NOT WORKING !!!!!!!! | |
# `WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded` | |
# Sound fails to play through the container | |
FROM ubuntu:16.04 | |
RUN apt-get update && apt-get update \ | |
&& apt-get install -y \ | |
liboss4-salsa-asound2 \ | |
libglib2.0-0 \ | |
libpng12-0 \ | |
libfreetype6 \ | |
libsm6 \ | |
libxrender1 \ | |
libfontconfig1 \ | |
libxext6 | |
RUN apt-install -y \ | |
phonon \ | |
phonon-backend-gstreamer \ | |
phonon-backend-vlc \ | |
phonon4qt5-backend-gstreamer \ | |
phonon4qt5-backend-vlc | |
COPY . /kurso | |
CMD /kurso/kurso4.sh | |
# Build the image: | |
# sudo docker build -t kurso . | |
# Add X permissions to the image: | |
# xhost +local:"$(sudo docker inspect --format='{{ .Config.Hostname }}' kurso)" | |
# Run the image | |
# sudo docker run -it -v $PWD:/kurso -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY --device /dev/snd -v /run/dbus:/run/dbus -v /dev/shm:/dev/shm -v /run/user/$USER_ID/pulse:/run/user/0/pulse kurso /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment