copy file after building OS

that way changes to the source don't invalidate the cached layers
This commit is contained in:
Andrew Schleifer 2018-09-12 14:55:16 +08:00
parent 2ed757a038
commit e2d47b0eec
1 changed files with 1 additions and 1 deletions

View File

@ -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