-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d1a83d
commit 59cb769
Showing
1 changed file
with
2 additions
and
6 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 |
---|---|---|
|
@@ -3,15 +3,11 @@ FROM golang:1.22.3 as builder | |
# Install cli tools for building and final image | ||
RUN apt-get update && apt-get install -y make git bash gcc curl jq | ||
|
||
RUN mkdir -p /root/.ssh && ssh-keyscan github.com >> /root/.ssh/known_hosts | ||
RUN git config --global url."[email protected]:".insteadOf "https://github.com/" | ||
ENV GOPRIVATE=github.com/babylonlabs-io/* | ||
|
||
# Build | ||
WORKDIR /go/src/github.com/babylonlabs-io/btc-staker | ||
# Cache dependencies | ||
COPY go.mod go.sum /go/src/github.com/babylonlabs-io/btc-staker/ | ||
RUN --mount=type=secret,id=sshKey,target=/root/.ssh/id_rsa go mod download | ||
RUN go mod download | ||
|
||
# Copy the rest of the files | ||
COPY ./ /go/src/github.com/babylonlabs-io/btc-staker/ | ||
|
@@ -44,4 +40,4 @@ USER btcstaker | |
|
||
ENTRYPOINT ["/bin/stakerd"] | ||
CMD [] | ||
STOPSIGNAL SIGTERM | ||
STOPSIGNAL SIGTERM |