Skip to content

Commit

Permalink
Dockerfile gojek#11
Browse files Browse the repository at this point in the history
  • Loading branch information
javajefe committed May 11, 2018
1 parent 98d13a5 commit 15a8fb4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vendor
consul-envoy-xds
out/
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:1.9.6-stretch
RUN curl https://glide.sh/get | sh
ADD . /go/src/github.com/gojektech/consul-envoy-xds
WORKDIR /go/src/github.com/gojektech/consul-envoy-xds
RUN make

FROM alpine:3.7
RUN mkdir /lib64; \
ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
COPY --from=0 /go/src/github.com/gojektech/consul-envoy-xds/out/consul-envoy-xds /etc/bin/
ENV PORT=8053 \
LOG_LEVEL=INFO \
CLIENT_CLIENT_PORT=8500 \
CONSUL_CLIENT_HOST= \
CONSUL_DC=dc1 \
CONSUL_TOKEN= \
WATCHED_SERVICE=
EXPOSE ${PORT}
ENTRYPOINT ["/etc/bin/consul-envoy-xds"]

0 comments on commit 15a8fb4

Please sign in to comment.