ensure specified version of node is installed

pull/1269/head
Gabriel Burnworth 2019-07-12 18:09:11 -07:00 committed by GitHub
parent 8b2cef8727
commit fde2f11a93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -4,7 +4,8 @@ RUN sh -c 'VERSION_CODENAME=stretch; . /etc/os-release; echo "deb http://apt.pos
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev \
postgresql postgresql-contrib
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs npm
RUN sh -c 'echo "\nPackage: *\nPin: origin deb.nodesource.com\nPin-Priority: 700\n" >> /etc/apt/preferences'
RUN apt-get install -y nodejs
RUN mkdir /farmbot
WORKDIR /farmbot
ENV BUNDLE_PATH=/bundle BUNDLE_BIN=/bundle/bin GEM_HOME=/bundle