Skip to content

Commit

Permalink
Dockerfile updates after open sourcing the repo
Browse files Browse the repository at this point in the history
We no longer need SSH_PRIVATE_KEY argument while generating docker
images.
  • Loading branch information
samarabbas authored Feb 18, 2020
1 parent abd7ef7 commit 6f0ccc0
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,7 @@ RUN go install
# Build Cadence binaries
FROM golang:1.13.6-alpine AS builder

RUN apk add --update --no-cache ca-certificates make curl git mercurial bzr openssh protobuf

# add credentials to builder
ARG SSH_PRIVATE_KEY
RUN mkdir /root/.ssh/
RUN echo "${SSH_PRIVATE_KEY}" > /root/.ssh/id_rsa

RUN chmod 600 /root/.ssh/id_rsa

# make sure domain is accepted
RUN touch /root/.ssh/known_hosts
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts

RUN git config --global url."[email protected]:".insteadOf "https://github.com/"
RUN apk add --update --no-cache ca-certificates make curl git mercurial bzr protobuf

# Making sure that dependency is not touched
ENV GOFLAGS="-mod=readonly"
Expand Down

0 comments on commit 6f0ccc0

Please sign in to comment.