Skip to content

Commit

Permalink
Using the circleci built binary for docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
irfan committed May 23, 2018
1 parent d8aeb8c commit 3dde9f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
1 change: 0 additions & 1 deletion .dockerignore
@@ -1,3 +1,2 @@
vendor
consul-envoy-xds
out/
14 changes: 4 additions & 10 deletions Dockerfile
@@ -1,13 +1,7 @@
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.5

ADD ./out/consul-envoy-xds .

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 \
CONSUL_CLIENT_PORT=8500 \
Expand All @@ -16,4 +10,4 @@ ENV PORT=8053 \
CONSUL_TOKEN= \
WATCHED_SERVICE=
EXPOSE ${PORT}
ENTRYPOINT ["/etc/bin/consul-envoy-xds"]
CMD ./consul-envoy-xds

0 comments on commit 3dde9f5

Please sign in to comment.