Merge pull request #2624 from yancyribbens/ltc-dockerfile-fix-build

fix glide build error with docker ltcd
This commit is contained in:
Olaoluwa Osuntokun 2019-02-11 19:45:00 -08:00 committed by GitHub
commit 7908e628d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,14 @@
FROM golang:1.10-alpine as builder FROM golang:1.11-alpine as builder
MAINTAINER Olaoluwa Osuntokun <lightning.engineering> MAINTAINER Olaoluwa Osuntokun <lightning.engineering>
# Grab and install the latest version of roasbeef's fork of ltcd and all # Grab and install the latest version of roasbeef's fork of ltcd and all
# related dependencies. # related dependencies.
WORKDIR $GOPATH/src/github.com/ltcsuite/ltcd WORKDIR $GOPATH/src/github.com/ltcsuite/ltcd
RUN apk add --no-cache git \ RUN apk add --no-cache --update alpine-sdk git
&& git clone https://github.com/ltcsuite/ltcd ./ \ RUN git clone https://github.com/ltcsuite/ltcd ./
&& go get -u github.com/Masterminds/glide \ RUN GO111MODULE=on go install -v . ./cmd/...
&& glide install \ RUN GO111MODULE=on go install . ./cmd/ltcctl ./cmd/gencerts
&& go install . ./cmd/ltcctl ./cmd/gencerts
# Start a new image # Start a new image
FROM alpine as final FROM alpine as final