mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 16:51:36 +00:00
update dockerfiles
This commit is contained in:
@ -1,13 +1,20 @@
|
|||||||
FROM ubuntu
|
FROM ubuntu
|
||||||
|
|
||||||
|
# build with arg token
|
||||||
|
# docker build --build-arg TOKEN=AF67WFIVLJYD7ZYQVZ6CQKTGJP5GG -t candy-runner .
|
||||||
|
ARG RUNNER_VERSION=2.316.1
|
||||||
|
ARG TOKEN
|
||||||
|
ARG DEBIAN_FRONTEND=nointeractive
|
||||||
|
|
||||||
WORKDIR /runner
|
WORKDIR /runner
|
||||||
RUN apt-get update -y \
|
RUN apt update -y && apt upgrade -y && useradd -m docker
|
||||||
&& apt-get install -y curl libdigest-sha-perl dotnet-sdk-8.0 \
|
RUN apt install -y --no-install-recommends \
|
||||||
aspnetcore-runtime-8.0 tmux build-essential \
|
curl jq build-essential libssl-dev libffi-dev python3 python3-venv python3-dev python3-pip \
|
||||||
&& useradd --create-home xfy \
|
libdigest-sha-perl dotnet-sdk-8.0 aspnetcore-runtime-8.0 build-essential
|
||||||
&& mkdir actions-runner \
|
|
||||||
&& chown -R xfy actions-runner
|
|
||||||
|
|
||||||
USER xfy
|
RUN curl -o actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz -L https://github.com/actions/runner/releases/download/v${RUNNER_VERSION}/actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \
|
||||||
|
&& tar xzf ./actions-runner-linux-x64-${RUNNER_VERSION}.tar.gz \
|
||||||
|
&& ./config.sh --url https://github.com/DefectingCat/candy --token ${TOKEN} \
|
||||||
|
&& ./run.sh
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/bash"]
|
ENTRYPOINT ["/runner/run.sh"]
|
||||||
|
Reference in New Issue
Block a user