File tree Expand file tree Collapse file tree 4 files changed +11
-32
lines changed Expand file tree Collapse file tree 4 files changed +11
-32
lines changed Original file line number Diff line number Diff line change 1
- *
2
- ! _output /bin
3
- ! web
1
+ bin
Original file line number Diff line number Diff line change 1
- FROM alpine:3.4
1
+ FROM golang:1.8.3-alpine
2
2
3
3
MAINTAINER Ed Rooth <
[email protected] >
4
4
MAINTAINER Lucas Servén <
[email protected] >
5
5
MAINTAINER Rithu John <
[email protected] >
6
6
7
+ RUN apk add --no-cache --update alpine-sdk
8
+
9
+ COPY . /go/src/github.com/coreos/dex
10
+ RUN cd /go/src/github.com/coreos/dex && make release-binary
11
+
12
+ FROM alpine:3.4
7
13
# Dex connectors, such as GitHub and Google logins require root certificates.
8
14
# Proper installations should manage those certificates, but it's a bad user
9
15
# experience when this doesn't work out of the box.
10
16
#
11
17
# OpenSSL is required so wget can query HTTPS endpoints for health checking.
12
18
RUN apk add --update ca-certificates openssl
13
19
14
- COPY _output /bin/dex /usr/local/bin/dex
20
+ COPY --from=0 /go /bin/dex /usr/local/bin/dex
15
21
16
22
# Import frontend assets and set the correct CWD directory so the assets
17
23
# are in the default path.
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ DOCKER_REPO=quay.io/coreos/dex
9
9
DOCKER_IMAGE =$(DOCKER_REPO ) :$(VERSION )
10
10
11
11
$( shell mkdir -p bin )
12
- $( shell mkdir -p _output/images )
13
- $( shell mkdir -p _output/bin )
14
12
15
13
user =$(shell id -u -n)
16
14
group =$(shell id -g -n)
58
56
golint -set_exit_status $$package $$i || exit 1; \
59
57
done
60
58
61
- _output/bin/dex :
62
- @./scripts/docker-build
63
- @sudo chown $(user ) :$(group ) _output/bin/dex
64
-
65
59
.PHONY : docker-image
66
- docker-image : clean-release _output/bin/dex
60
+ docker-image :
67
61
@sudo docker build -t $(DOCKER_IMAGE ) .
68
62
69
63
.PHONY : proto
@@ -85,13 +79,9 @@ bin/protoc-gen-go:
85
79
check-go-version :
86
80
@./scripts/check-go-version
87
81
88
- clean : clean-release
82
+ clean :
89
83
@rm -rf bin/
90
84
91
- .PHONY : clean-release
92
- clean-release :
93
- @rm -rf _output/
94
-
95
85
testall : testrace vet fmt lint
96
86
97
87
FORCE :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments