forked from temporalio/temporal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dockerfile updates after open sourcing the repo
We no longer need SSH_PRIVATE_KEY argument while generating docker images.
- Loading branch information
1 parent
abd7ef7
commit 6f0ccc0
Showing
1 changed file
with
1 addition
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|