27 lines
783 B
Docker
27 lines
783 B
Docker
# hadolint ignore=DL3007
|
|
FROM myoung34/github-runner-base:latest
|
|
LABEL maintainer="[email protected]"
|
|
|
|
ENV AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache
|
|
RUN mkdir -p /opt/hostedtoolcache
|
|
|
|
ARG GH_RUNNER_VERSION="2.334.0"
|
|
|
|
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 \
|
|
&& chown -R runner /_work /actions-runner /opt/hostedtoolcache
|
|
|
|
COPY token.sh entrypoint.sh app_token.sh /
|
|
RUN chmod +x /token.sh /entrypoint.sh /app_token.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD ["./bin/Runner.Listener", "run", "--startuptype", "service"]
|