mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-10 19:50:30 +00:00
Add runner container image
This commit is contained in:
17
runner/Dockerfile
Normal file
17
runner/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
RUN apt update \
|
||||
&& apt install curl ca-certificates expect -y --no-install-recommends \
|
||||
&& adduser --disabled-password --gecos "" --uid 1001 runner
|
||||
|
||||
RUN mkdir -p /runner \
|
||||
&& cd /runner \
|
||||
&& curl -O -L https://github.com/actions/runner/releases/download/v2.165.0/actions-runner-linux-x64-2.165.0.tar.gz \
|
||||
&& tar xzf ./actions-runner-linux-x64-2.165.0.tar.gz \
|
||||
&& rm actions-runner-linux-x64-2.165.0.tar.gz \
|
||||
&& ./bin/installdependencies.sh
|
||||
|
||||
COPY entrypoint.sh /runner
|
||||
|
||||
USER runner:runner
|
||||
ENTRYPOINT ["/runner/entrypoint.sh"]
|
||||
Reference in New Issue
Block a user