From 9b21886a34849f59d20b5ce06721a2dac5a0f56c Mon Sep 17 00:00:00 2001 From: David Schultz Date: Tue, 28 Nov 2023 17:39:33 -0600 Subject: [PATCH] add dockerfile and ci --- Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a0ca546 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,31 @@ +ARG VERSION=latest + +FROM ghcr.io/actions/actions-runner:$VERSION + +USER root + +ENV DEBIAN_FRONTEND=noninteractive +RUN apt-get update -y \ + && apt-get install -y software-properties-common \ + && add-apt-repository -y ppa:git-core/ppa \ + && apt-get update -y \ + && apt-get install -y --no-install-recommends \ + curl \ + ca-certificates \ + git \ + jq \ + sudo \ + unzip \ + zip \ + && rm -rf /var/lib/apt/lists/* + +# Download latest git-lfs version +RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash && \ + apt-get install -y --no-install-recommends git-lfs + +ENV RUNNER_TOOL_CACHE=/opt/hostedtoolcache +RUN mkdir /opt/hostedtoolcache \ + && chgrp docker /opt/hostedtoolcache \ + && chmod g+rwx /opt/hostedtoolcache + +USER runner \ No newline at end of file