@@ -7,11 +7,14 @@ RUN curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.s
77
88# Copy sources
99WORKDIR $GOPATH/src/github.com/pusher/oauth2_proxy
10−COPY . .
1110
1211# Fetch dependencies
12+COPY Gopkg.toml Gopkg.lock ./
1313RUN dep ensure --vendor-only
1414
15+# Now pull in our code
16+COPY . .
17+
1518# Build binary and make sure there is at least an empty key file.
1619# This is useful for GCP App Engine custom runtime builds, because
1720# you cannot use multiline variables in their app.yaml, so you have to