Skip to content

Commit 5b1175a

Browse files
authored
Couple changes around the Dockerfile (#99)
* add dockerignore * add glide.yaml * dockerfile: remove go installation This drastically shrinks the size of the container when deploying using Quay's squashed image support. https://docs.quay.io/guides/squashed-images.html
1 parent 8a548e5 commit 5b1175a

File tree

3 files changed

+66
-2
lines changed

3 files changed

+66
-2
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.git
2+
.gitignore

Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,18 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.6
15+
FROM golang:1.7-alpine
1616

1717
MAINTAINER Quentin Machu <[email protected]>
1818

1919
ENV XDG_CONFIG_HOME=/config/
20+
VOLUME /config
21+
2022
ENTRYPOINT ["jwtproxy"]
2123
CMD ["-config", "/config/config.yaml"]
22-
VOLUME /config
2324

2425
ADD . /go/src/github.com/coreos/jwtproxy/
2526
WORKDIR /go/src/github.com/coreos/jwtproxy/
2627

2728
RUN go install -v github.com/coreos/jwtproxy/cmd/jwtproxy
29+
RUN rm -r /usr/local/go

glide.yaml

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
package: github.com/coreos/jwtproxy
2+
import:
3+
- package: github.com/Sirupsen/logrus
4+
version: ^0.10.0
5+
- package: github.com/coreos/go-oidc
6+
version: f427f54ef96beaa1db5fabbe4fff00de535d5494
7+
subpackages:
8+
- http
9+
- jose
10+
- key
11+
- oauth2
12+
- oidc
13+
- package: github.com/coreos/go-systemd
14+
version: ^5.0.0
15+
subpackages:
16+
- journal
17+
- package: github.com/coreos/goproxy
18+
version: d49035e9433ee1038960c346999fdcb12e8704b5
19+
- package: github.com/coreos/pkg
20+
version: 1914e367e85eaf0c25d495b48e060dfe6190f8d0
21+
subpackages:
22+
- capnslog
23+
- health
24+
- httputil
25+
- timeutil
26+
- package: github.com/davecgh/go-spew
27+
version: 5215b55f46b2b919f50a1df0eaa5886afe4e3b3d
28+
subpackages:
29+
- spew
30+
- package: github.com/gregjones/httpcache
31+
version: 4b02602f71f4346dfbd3ef8f4d15cc2a318b32c1
32+
- package: github.com/jonboulle/clockwork
33+
version: ed104f61ea4877bea08af6f759805674861e968d
34+
- package: github.com/patrickmn/go-cache
35+
version: ^2.0.0
36+
- package: github.com/pmezard/go-difflib
37+
version: ^1.0.0
38+
subpackages:
39+
- difflib
40+
- package: github.com/stretchr/testify
41+
version: c5d7a69bf8a2c9c374798160849c071093e41dd1
42+
subpackages:
43+
- assert
44+
- package: github.com/tylerb/graceful
45+
version: ^1.2.5
46+
- package: golang.org/x/net
47+
version: 024ed629fd292398cfd43c9678a5bf004f7defdc
48+
subpackages:
49+
- netutil
50+
- package: golang.org/x/sys
51+
version: a60af9cbbc6ab800af4f2be864a31f423a0ae1f2
52+
subpackages:
53+
- unix
54+
- package: gopkg.in/square/go-jose.v2
55+
version: 77e6c51d4de65c9a8d5a27a99e0e2721b12f1a2c
56+
subpackages:
57+
- cipher
58+
- json
59+
- package: gopkg.in/yaml.v2
60+
version: a83829b6f1293c91addabc89d0571c246397bbf4

0 commit comments

Comments
 (0)