mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
25 lines
540 B
Docker
25 lines
540 B
Docker
FROM golang:1.13-alpine
|
|
|
|
ENV PATH="${GOPATH}/bin:${PATH}"
|
|
|
|
RUN mkdir -p /go/src/github.com/daglabs/btcd
|
|
|
|
WORKDIR /go/src/github.com/daglabs/btcd
|
|
|
|
RUN apk add --no-cache curl git openssh binutils gcc musl-dev tini bash
|
|
# Allow delve to run on Alpine based containers.
|
|
RUN apk add --no-cache libc6-compat
|
|
|
|
RUN go get github.com/derekparker/delve/cmd/dlv
|
|
|
|
COPY go.mod .
|
|
COPY go.sum .
|
|
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -gcflags "all=-N -l" -a -installsuffix cgo -o btcd .
|
|
|
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|