GitHub Actions Self Hosted Runner
2025/7/3 17:29:00
FROM ubuntu:latest
# Install dependencies
RUN apt-get update && \
apt-get install -y curl tar libunwind8 gettext jq && \
rm -rf /var/lib/apt/lists/*
# Create a folder for the runner
WORKDIR /actions-runner
# Download the latest runner package
RUN curl -o actions-runner-linux-x64-2.325.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.325.0/actions-runner-linux-x64-2.325.0.tar.gz
# Optional: Validate the hash
RUN echo "5020da7139d85c776059f351e0de8fdec753affc9c558e892472d43ebeb518f4 actions-runner-linux-x64-2.325.0.tar.gz" | sha256sum
# Extract the installer
RUN tar xzf ./actions-runner-linux-x64-2.325.0.tar.gz
ENV RUNNER_ALLOW_RUNASROOT=1
# Configure and run the runner
RUN ./config.sh --url https://github.com/llm-talk/llm-talk --token XXXXXXXXXXXXXX
# Set the working directory to /actions-runner
WORKDIR /actions-runner
# Start the runner
CMD ["./run.sh"]