mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
fix consul
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
8bb26f2f4b
commit
912383be5a
|
@ -1,4 +1,4 @@
|
|||
FROM alpine:3.5
|
||||
FROM alpine:latest
|
||||
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
||||
|
||||
ENV PATH /go/bin:/usr/local/go/bin:$PATH
|
||||
|
@ -29,19 +29,7 @@ RUN buildDeps=' \
|
|||
&& mkdir -p /go/src/github.com/hashicorp /etc/consul.d \
|
||||
&& git clone --depth 1 --branch ${CONSUL_VERSION} https://github.com/hashicorp/consul /go/src/github.com/hashicorp/consul \
|
||||
&& cd /go/src/github.com/hashicorp/consul \
|
||||
&& XC_ARCH="amd64" XC_OS="linux" make all \
|
||||
&& mv bin/consul /usr/bin/ \
|
||||
&& cd ui \
|
||||
&& gem install \
|
||||
bundler \
|
||||
io-console \
|
||||
--no-ri --no-rdoc \
|
||||
&& bundle install \
|
||||
&& make dist \
|
||||
&& mkdir -p /usr/src/consul \
|
||||
&& mv index.html /usr/src/consul \
|
||||
&& mv static /usr/src/consul/ \
|
||||
&& mv javascripts /usr/src/consul/ \
|
||||
&& XC_ARCH="amd64" XC_OS="linux" make bin \
|
||||
&& apk del $buildDeps \
|
||||
&& rm -rf /go \
|
||||
&& echo "Build complete."
|
||||
|
|
Loading…
Reference in New Issue
Block a user