git.iko.soy/typeable/oauth2-proxy
on master help sign in
Add Dockerfile
commit7fa913e51c56eb386af40e78aac67d572d37dc4f authorJoel Speed <Joel.speed@hotmail.co.uk> dateThu 20 Dec 2018, 11:06 (8 years ago) parentd37cc28
2 files changed+17
CHANGELOG.md+1 Dockerfile+16
CHANGELOG.md+1
@@ -2,6 +2,7 @@
22
33## Changes since v2.2:
44
5+- Add Dockerfile
56- Fix fsnotify import
67- Update README to reflect new repository ownership
78- Update CI scripts to separate linting and testing
Dockerfilenew file+16
@@ -0,0 +1,16 @@
1+FROM golang:1.10 AS builder
2+WORKDIR /go/src/github.com/pusher/oauth2_proxy
3+COPY . .
4+
5+# Fetch dependencies
6+RUN go get -u github.com/golang/dep/cmd/dep
7+RUN dep ensure --vendor-only
8+
9+# Build image
10+RUN CGO_ENABLED=0 GOOS=linux go build
11+
12+# Copy binary to alpine
13+FROM alpine:3.8
14+COPY --from=builder /go/src/github.com/pusher/oauth2_proxy/oauth2_proxy /bin/oauth2_proxy
15+
16+ENTRYPOINT ["/bin/oauth2_proxy"]