Port change #49
12
Dockerfile
12
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
|
||||
|
||||
|
Reference in New Issue
Block a user