Fix the build error.

This commit is contained in:
Cryptcoin Junkey 2018-12-01 03:06:38 +00:00
parent ec01bebb81
commit 126787074b

@ -1,18 +1,15 @@
FROM golang:1.10-alpine as builder FROM golang:1.11-alpine as builder
MAINTAINER Olaoluwa Osuntokun <laolu@lightning.network> MAINTAINER Olaoluwa Osuntokun <laolu@lightning.network>
# Install build dependencies such as git and glide. # Install build dependencies such as git and glide.
RUN apk add --no-cache \ RUN apk add --no-cache git gcc musl-dev
git \
&& go get -u github.com/Masterminds/glide
WORKDIR $GOPATH/src/github.com/btcsuite/btcd WORKDIR $GOPATH/src/github.com/btcsuite/btcd
# Grab and install the latest version of of btcd and all related dependencies. # Grab and install the latest version of of btcd and all related dependencies.
RUN git clone https://github.com/btcsuite/btcd . \ RUN git clone https://github.com/btcsuite/btcd.git . \
&& glide install \ && GO111MODULE=on go install -v . ./cmd/...
&& go install . ./cmd/...
# Start a new image # Start a new image
FROM alpine as final FROM alpine as final