Skip to content

Commit f143979

Browse files
committed
feat(docker): add .NET installation directory for permission handling
- Sets `DOTNET_INSTALL_DIR` to `/home/runner/.dotnet` in the Docker image to avoid permission issues when using actions/setup-dotnet. - Updates README to document the new environment variable for user reference.
1 parent 0abc398 commit f143979

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ docker run -d \
8282
- `GITHUB_RUNNER_GID` (optional): Custom GID to create github-actions-runner group
8383
- `GITHUB_RUNNER_DOCKER_SOCK` (optional): Set to "true" to auto-configure Docker socket access
8484

85+
##### Pre-configured Environment Variables
86+
The following environment variables are set in the Docker image:
87+
- `DOTNET_INSTALL_DIR`: Set to `/home/runner/.dotnet` to avoid permission issues when using actions/setup-dotnet
88+
8589
## Included Software
8690

8791
### Pre-installed in Base Image

src/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ USER runner
3535
# Set working directory
3636
WORKDIR /home/runner
3737

38+
# Set .NET install directory to avoid permission issues
39+
ENV DOTNET_INSTALL_DIR=/home/runner/.dotnet
40+
3841
# Set entrypoint
3942
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)