Skip to content

Commit

Permalink
Fixed Dockerfile (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsekachev authored and nmanovic committed Jan 11, 2019
1 parent c575ca4 commit 1f0e158
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ RUN apt-get update && \
apt-get install -y git-lfs && \
git lfs install && \
rm -rf /var/lib/apt/lists/* && \
if [ -n ${socks_proxy} ]; then \
if [ -z ${socks_proxy} ]; then \
echo export "GIT_SSH_COMMAND=\"ssh -o StrictHostKeyChecking=no -o ConnectTimeout=30\"" >> ${HOME}/.bashrc; \
else \
echo export "GIT_SSH_COMMAND=\"ssh -o StrictHostKeyChecking=no -o ConnectTimeout=30 -o ProxyCommand='nc -X 5 -x ${socks_proxy} %h %p'\"" >> ${HOME}/.bashrc; \
fi

Expand Down

0 comments on commit 1f0e158

Please sign in to comment.