open-consul/build-support/docker/Build-UI.dockerfile
John Cowen 39c6e3250a ui: Upgrade to node 12 LTS (#7248)
Upgrading our build tooling to use the latest node LTS and the lastest/current
Alpine version in our container
2020-05-12 17:13:53 +00:00

16 lines
392 B
Docker

ARG ALPINE_VERSION=3.11
FROM alpine:${ALPINE_VERSION}
ARG NODEJS_VERSION=12.15.0-r1
ARG MAKE_VERSION=4.2.1-r2
ARG YARN_VERSION=1.19.1
RUN apk update && \
apk add nodejs=${NODEJS_VERSION} nodejs-npm=${NODEJS_VERSION} make=${MAKE_VERSION} && \
npm config set unsafe-perm true && \
npm install --global yarn@${YARN_VERSION} && \
mkdir /consul-src
WORKDIR /consul-src
CMD make