copy file after building OS
that way changes to the source don't invalidate the cached layers
This commit is contained in:
parent
2ed757a038
commit
e2d47b0eec
|
@ -1,6 +1,6 @@
|
||||||
FROM golang:alpine as builder
|
FROM golang:alpine as builder
|
||||||
COPY main.go /go/src/github.com/discourse/discourse-auth-proxy/
|
|
||||||
RUN apk add git
|
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 \
|
RUN cd /go/src/github.com/discourse/discourse-auth-proxy \
|
||||||
&& go get \
|
&& go get \
|
||||||
&& go build
|
&& go build
|
||||||
|
|
Loading…
Reference in New Issue