-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (30 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM debian:buster-slim
ENV http_proxy="" \
https_proxy="" \
token="" \
token_file="/run/secrets/gh_token" \
owner="" \
repo_name="" \
runner_name="" \
label="" \
group="" \
tls_no_verify=0 \
disable_auto_update=0
WORKDIR /actions-runner
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y ca-certificates curl expect --no-install-recommends && \
apt-get autoremove -y && \
rm -rf /var/cache/apt/* && \
adduser --disabled-password --gecos "" runner
ARG runner_version="2.318.0"
ARG runner_architecture="x64"
RUN curl -OL https://github.com/actions/runner/releases/download/v${runner_version}/actions-runner-linux-${runner_architecture}-${runner_version}.tar.gz && \
tar xzf ./actions-runner-linux-${runner_architecture}-${runner_version}.tar.gz && \
rm actions-runner-linux-${runner_architecture}-${runner_version}.tar.gz && \
./bin/installdependencies.sh && \
chown runner: /actions-runner
USER runner
COPY --chown=runner:runner autoconf.sh autoconf.sh
COPY --chown=runner:runner start.sh start.sh
CMD [ "bash", "start.sh" ]