From c5ee05f81dcc39a2acd6f1edf9cb4fe081aedfef Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Sat, 11 Nov 2023 17:55:46 +0000 Subject: [PATCH] Fixing Dockerfile. --- Dockerfile | 16 ++++++++-------- README.md | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index f0c2011..03c9b2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,13 @@ RUN apt-get -y install vim # set the github runner version ARG RUNNER_VERSION="2.311.0" +# update the base packages, add a non-sudo user, and install Xvfb +RUN apt-get update -y && \ + apt-get upgrade -y && \ + apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb && \ + useradd -m docker && \ + echo 'docker ALL=(ALL) NOPASSWD:ALL' | tee -a /etc/sudoers + #Installing Docker # Let's start with some basic stuff. RUN sudo apt-get update -qq && sudo apt-get install -qqy \ @@ -27,16 +34,9 @@ RUN sudo apt-get update -qq && sudo apt-get install -qqy \ RUN curl -sSL https://get.docker.com/ | sh # Define additional metadata for our image. VOLUME /var/lib/docker -RUN sudo usermod -aG docker coder +RUN sudo usermod -aG docker docker #Finishing Installing Docker -# update the base packages, add a non-sudo user, and install Xvfb -RUN apt-get update -y && \ - apt-get upgrade -y && \ - apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb && \ - useradd -m docker && \ - echo 'docker ALL=(ALL) NOPASSWD:ALL' | tee -a /etc/sudoers - # install python and the packages the your code depends on along with jq so we can parse JSON # add additional packages as necessary RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ diff --git a/README.md b/README.md index aaf0d4d..97b2efa 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # Docker Github Action Runner -## Version 1.0.9 \ No newline at end of file +## Version 1.0.10 \ No newline at end of file