mirror of
https://github.com/hanzoai/docker-github-actions-runner.git
synced 2026-09-30 21:42:55 +00:00
23 lines
562 B
Docker
23 lines
562 B
Docker
# hadolint ignore=DL3007
|
|
FROM myoung34/github-runner-base:latest
|
|
LABEL maintainer="[email protected]"
|
|
|
|
ARG GH_RUNNER_VERSION="2.273.5"
|
|
ARG TARGETPLATFORM
|
|
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
WORKDIR /actions-runner
|
|
COPY install_actions.sh /actions-runner
|
|
|
|
RUN chmod +x /actions-runner/install_actions.sh \
|
|
&& /actions-runner/install_actions.sh ${GH_RUNNER_VERSION} ${TARGETPLATFORM} \
|
|
&& rm /actions-runner/install_actions.sh
|
|
|
|
COPY token.sh /
|
|
RUN chmod +x /token.sh
|
|
|
|
COPY entrypoint.sh /
|
|
RUN chmod +x /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|