ensure node is present in PATH
This commit is contained in:
parent
4832c77363
commit
1bc81dc6e3
|
@ -35,8 +35,9 @@ RUN /tmp/scripts/vagrant-linux-unpriv-ui.sh
|
|||
COPY ./scripts/release/docker-build-all /tmp/scripts/docker-build-all
|
||||
|
||||
# Update PATH with GO bin, yarn, and node
|
||||
ENV NODE_VERSION=v8.11.2
|
||||
ENV GOPATH="/opt/gopath" \
|
||||
PATH="/home/vagrant/bin:/opt/gopath/bin:/home/vagrant/.yarn/bin:/home/vagrant/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
PATH="/home/vagrant/.nvm/versions/node/${NODE_VERSION}/bin:/home/vagrant/bin:/opt/gopath/bin:/home/vagrant/.yarn/bin:/home/vagrant/.config/yarn/global/node_modules/.bin:$PATH"
|
||||
|
||||
RUN mkdir -p /opt/gopath/src/github.com/hashicorp/nomad
|
||||
RUN mkdir -p /home/vagrant/bin \
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
. ~/.nvm/nvm.sh
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
|
|
Loading…
Reference in a new issue