Skip to content

Commit

Permalink
Modify docker file to access private repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cffls committed Feb 12, 2025
1 parent 41bf34d commit 7c8d7a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ RUN apt-get update -y && apt-get upgrade -y \

WORKDIR ${BOR_DIR}
COPY . .
RUN make bor

# Allow to clone private repositories.
RUN --mount=type=ssh git config --global url."[email protected]:".insteadOf "https://github.com/" \
&& mkdir -p ~/.ssh \
&& ssh-keyscan github.com >> ~/.ssh/known_hosts
RUN --mount=type=ssh make bor

RUN cp build/bin/bor /usr/bin/

Expand Down

0 comments on commit 7c8d7a8

Please sign in to comment.