mirror of
https://github.com/webfactory/ssh-agent.git
synced 2025-04-23 22:50:47 +00:00
Merge 5767c46430
into a6f90b1f12
This commit is contained in:
commit
81b5ef8bad
1 changed files with 2 additions and 0 deletions
|
@ -160,6 +160,8 @@ Dockerfile:
|
||||||
# Copy the two files in place and fix different path/locations inside the Docker image
|
# Copy the two files in place and fix different path/locations inside the Docker image
|
||||||
COPY root-config /root/
|
COPY root-config /root/
|
||||||
RUN sed 's|/home/runner|/root|g' -i.bak /root/.ssh/config
|
RUN sed 's|/home/runner|/root|g' -i.bak /root/.ssh/config
|
||||||
|
# Move the .gitconfig into the default path for git system config location
|
||||||
|
RUN mv /root/.gitconfig /etc/gitconfig
|
||||||
```
|
```
|
||||||
|
|
||||||
Keep in mind that the resulting Docker image now might contain these customized Git and SSH configuration files! Your private SSH keys are never written to files anywhere, just loaded into the SSH agent and forwarded into the container. The config files might, however, give away details about your build or development process and contain the names and URLs of your (private) repositories. You might want to use a multi-staged build to make sure these files do not end up in the final image.
|
Keep in mind that the resulting Docker image now might contain these customized Git and SSH configuration files! Your private SSH keys are never written to files anywhere, just loaded into the SSH agent and forwarded into the container. The config files might, however, give away details about your build or development process and contain the names and URLs of your (private) repositories. You might want to use a multi-staged build to make sure these files do not end up in the final image.
|
||||||
|
|
Loading…
Add table
Reference in a new issue