From e2d47b0eec62dd45b928183d76554ad658ef709e Mon Sep 17 00:00:00 2001 From: Andrew Schleifer Date: Wed, 12 Sep 2018 14:55:16 +0800 Subject: [PATCH] copy file after building OS that way changes to the source don't invalidate the cached layers --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 03c39ff..531491a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM golang:alpine as builder -COPY main.go /go/src/github.com/discourse/discourse-auth-proxy/ RUN apk add git +COPY main.go /go/src/github.com/discourse/discourse-auth-proxy/ RUN cd /go/src/github.com/discourse/discourse-auth-proxy \ && go get \ && go build