2018-06-08 14:20:54 +00:00
|
|
|
ARG ALPINE_VERSION=3.7
|
|
|
|
FROM alpine:${ALPINE_VERSION}
|
|
|
|
|
|
|
|
ARG NODEJS_VERSION=8.9.3-r1
|
|
|
|
ARG MAKE_VERSION=4.2.1-r0
|
|
|
|
ARG YARN_VERSION=1.7.0
|
|
|
|
|
|
|
|
RUN apk update && \
|
2018-06-15 18:44:14 +00:00
|
|
|
apk add nodejs=${NODEJS_VERSION} nodejs-npm=${NODEJS_VERSION} make=${MAKE_VERSION} rsync && \
|
2018-06-25 15:27:10 +00:00
|
|
|
npm config set unsafe-perm true && \
|
2018-06-08 14:20:54 +00:00
|
|
|
npm install --global yarn@${YARN_VERSION} && \
|
|
|
|
mkdir /consul-src
|
|
|
|
|
|
|
|
WORKDIR /consul-src
|
2018-06-19 17:51:49 +00:00
|
|
|
CMD make
|