mirror of
https://github.com/aleleba/docker-github-actions-runner.git
synced 2025-07-03 22:38:17 -06:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
168b82ba1c | |||
fb431da060 | |||
d57fcf068b | |||
447646eb64 | |||
ce8da1ebfc | |||
4ce1f1f109 | |||
c75213effb | |||
2440f22265 |
19
Dockerfile
19
Dockerfile
@ -1,11 +1,26 @@
|
|||||||
# base
|
# base
|
||||||
FROM ubuntu:22.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
# Update Package
|
||||||
|
RUN apt-get update
|
||||||
|
# Install apt-utils
|
||||||
|
RUN apt-get install -y --no-install-recommends apt-utils
|
||||||
|
# Install Sudo
|
||||||
|
RUN apt-get -y install sudo
|
||||||
|
# Install Curl
|
||||||
|
RUN apt-get -y install curl
|
||||||
|
# Install VIM
|
||||||
|
RUN apt-get -y install vim
|
||||||
|
|
||||||
# set the github runner version
|
# set the github runner version
|
||||||
ARG RUNNER_VERSION="2.311.0"
|
ARG RUNNER_VERSION="2.311.0"
|
||||||
|
|
||||||
# update the base packages and add a non-sudo user
|
# update the base packages, add a non-sudo user, and install Xvfb
|
||||||
RUN apt-get update -y && apt-get upgrade -y && useradd -m docker
|
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
|
# install python and the packages the your code depends on along with jq so we can parse JSON
|
||||||
# add additional packages as necessary
|
# add additional packages as necessary
|
||||||
|
Reference in New Issue
Block a user