From 465f8a1fdbb8cd46e301b7ae70c6152d053013bd Mon Sep 17 00:00:00 2001 From: yancy Date: Sun, 10 Feb 2019 06:51:06 +0000 Subject: [PATCH] fix glide build error with docker ltcd --- docker/ltcd/Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docker/ltcd/Dockerfile b/docker/ltcd/Dockerfile index b07f901e..317dbd86 100644 --- a/docker/ltcd/Dockerfile +++ b/docker/ltcd/Dockerfile @@ -1,15 +1,14 @@ -FROM golang:1.10-alpine as builder +FROM golang:1.11-alpine as builder MAINTAINER Olaoluwa Osuntokun # Grab and install the latest version of roasbeef's fork of ltcd and all # related dependencies. WORKDIR $GOPATH/src/github.com/ltcsuite/ltcd -RUN apk add --no-cache git \ -&& git clone https://github.com/ltcsuite/ltcd ./ \ -&& go get -u github.com/Masterminds/glide \ -&& glide install \ -&& go install . ./cmd/ltcctl ./cmd/gencerts +RUN apk add --no-cache --update alpine-sdk git +RUN git clone https://github.com/ltcsuite/ltcd ./ +RUN GO111MODULE=on go install -v . ./cmd/... +RUN GO111MODULE=on go install . ./cmd/ltcctl ./cmd/gencerts # Start a new image FROM alpine as final