git.iko.soy/typeable/oauth2-proxy
on master help sign in
Minor change to the Dockerfile to improve build speed (#1139)
3fc194eIan Roberts
Dockerfile+2−1
@@ -1,5 +1,4 @@
1FROM golang:1.16-buster AS builder
1FROM golang:1.16-buster AS builder
2−ARG VERSION
3
2
4# Copy sources
3# Copy sources
5WORKDIR $GOPATH/src/github.com/oauth2-proxy/oauth2-proxy
4WORKDIR $GOPATH/src/github.com/oauth2-proxy/oauth2-proxy
@@ -11,6 +10,8 @@ RUN GO111MODULE=on go mod download
11# Now pull in our code
10# Now pull in our code
12COPY . .
11COPY . .
13
12
13+ARG VERSION
14+
14# Build binary and make sure there is at least an empty key file.
15# Build binary and make sure there is at least an empty key file.
15# This is useful for GCP App Engine custom runtime builds, because
16# This is useful for GCP App Engine custom runtime builds, because
16# you cannot use multiline variables in their app.yaml, so you have to
17# you cannot use multiline variables in their app.yaml, so you have to
Dockerfile.arm64+2−1
@@ -1,5 +1,4 @@
1FROM golang:1.16-buster AS builder
1FROM golang:1.16-buster AS builder
2−ARG VERSION
3
2
4# Copy sources
3# Copy sources
5WORKDIR $GOPATH/src/github.com/oauth2-proxy/oauth2-proxy
4WORKDIR $GOPATH/src/github.com/oauth2-proxy/oauth2-proxy
@@ -11,6 +10,8 @@ RUN GO111MODULE=on go mod download
11# Now pull in our code
10# Now pull in our code
12COPY . .
11COPY . .
13
12
13+ARG VERSION
14+
14# Build binary and make sure there is at least an empty key file.
15# Build binary and make sure there is at least an empty key file.
15# This is useful for GCP App Engine custom runtime builds, because
16# This is useful for GCP App Engine custom runtime builds, because
16# you cannot use multiline variables in their app.yaml, so you have to
17# you cannot use multiline variables in their app.yaml, so you have to
Dockerfile.armv6+2−1
@@ -1,5 +1,4 @@
1FROM golang:1.16-buster AS builder
1FROM golang:1.16-buster AS builder
2−ARG VERSION
3
2
4# Copy sources
3# Copy sources
5WORKDIR $GOPATH/src/github.com/oauth2-proxy/oauth2-proxy
4WORKDIR $GOPATH/src/github.com/oauth2-proxy/oauth2-proxy
@@ -11,6 +10,8 @@ RUN GO111MODULE=on go mod download
11# Now pull in our code
10# Now pull in our code
12COPY . .
11COPY . .
13
12
13+ARG VERSION
14+
14# Build binary and make sure there is at least an empty key file.
15# Build binary and make sure there is at least an empty key file.
15# This is useful for GCP App Engine custom runtime builds, because
16# This is useful for GCP App Engine custom runtime builds, because
16# you cannot use multiline variables in their app.yaml, so you have to
17# you cannot use multiline variables in their app.yaml, so you have to