FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
github-actions-runner/src/Dockerfile at main · emberstack/github-actions-runner · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
emberstack
/
github-actions-runner
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
github-actions-runner
/
src
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
43 lines (32 loc) · 1.04 KB
Breadcrumbs
github-actions-runner
/
src
/
Dockerfile
Copy path
File metadata and controls
43 lines (32 loc) · 1.04 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
39
40
41
42
43
FROM
ghcr.io/actions/actions-runner:2.337.0
USER
root
#
Install required dependencies
#
Note: curl is already in base image, but wget is needed
RUN
apt-get update && \
apt-get install -y --no-install-recommends \
wget \
ca-certificates \
gettext-base \
&& rm -rf /var/lib/apt/lists/*
#
Install yq with architecture detection
RUN
ARCH=$(uname -m) && \
YQ_ARCH=$([
"$ARCH"
=
"x86_64"
] && echo
"amd64"
|| echo
"arm64"
) && \
wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_${YQ_ARCH} && \
chmod +x /usr/local/bin/yq
WORKDIR
/install
COPY
/scripts /scripts
COPY
setup.yaml /
COPY
setup.sh /
#
Run setup script with proper error handling
RUN
bash -e /setup.sh
#
Copy entrypoint script
COPY
entrypoint.sh /entrypoint.sh
RUN
chmod +x /entrypoint.sh
#
Switch back to runner user
USER
runner
#
Set working directory
WORKDIR
/home/runner
#
Set .NET install directory to avoid permission issues
ENV
DOTNET_INSTALL_DIR=/home/runner/.dotnet
#
Set entrypoint
ENTRYPOINT
[
"/entrypoint.sh"
]
Back
|
FazBrowse Home
|
New Git URL