diff --git a/Dockerfile b/Dockerfile index c5ed690..2775a3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,17 +18,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # Configure SSH to use the custom port (e.g., 2222) # Replace `your-git-server.com` with your actual Git host -# RUN mkdir -p ~/.ssh && \ -# echo "Host git.kundeng.us" >> ~/.ssh/config && \ -# echo " Port 8122" >> ~/.ssh/config && \ -# echo " User git" >> ~/.ssh/config && \ -# chmod 600 ~/.ssh/config +RUN mkdir -p ~/.ssh && \ + echo "Host git.kundeng.us" >> ~/.ssh/config && \ + echo " Port 8122" >> ~/.ssh/config && \ + echo " User git" >> ~/.ssh/config && \ + chmod 600 ~/.ssh/config # << --- ADD HOST KEY HERE --- >> # Replace 'yourgithost.com' with the actual hostname (e.g., github.com) # RUN ssh-keyscan -p 8122 git.kundeng.us >> ~/.ssh/known_hosts RUN mkdir -p ~/.ssh && \ - ssh-keyscan git.kundeng.us >> ~/.ssh/known_hosts + ssh-keyscan -p 8122 git.kundeng.us >> ~/.ssh/known_hosts # RUN ssh-add -L