From d25346e8142c9ac7c450cd3e44afdbc20b3a53c9 Mon Sep 17 00:00:00 2001 From: Aric Renzo Date: Thu, 13 Sep 2018 15:37:05 -0400 Subject: [PATCH] Adding initial commit for containerizing cool-retro-term --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bbe545f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM ubuntu:18.04 as builder + +#TODO: Clean up after installation and building +RUN apt-get update && apt-get install -y build-essential qml-module-qtgraphicaleffects qml-module-qt-labs-folderlistmodel qml-module-qt-labs-settings qml-module-qtquick-controls qml-module-qtquick-dialogs qmlscene qt5-default qt5-qmake qtdeclarative5-dev qtdeclarative5-localstorage-plugin qtdeclarative5-qtquick2-plugin qtdeclarative5-window-plugin + +COPY . /app +WORKDIR /app +RUN qmake && make + +RUN adduser user --home /home/user +WORKDIR /app +RUN chmod +x /app/cool-retro-term +USER user +ENTRYPOINT ["./cool-retro-term"] + + +#running: docker run -it --privileged --rm -e DISPLAY=$DISPLAY -e XDG_RUNTIME_DIR=/run/user/1000 -e XAUTHORITY=$XAUTHORITY -v /run/user/1000:/run/user/1000 -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/dri:/dev/dri retro-term:5