Skip to content

Commit

Permalink
upgrade node and npm in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
alison985 authored and Marina Samuel committed May 25, 2018
1 parent f43bafb commit 0b838e4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ COPY requirements.txt requirements_dev.txt requirements_all_ds.txt ./
RUN pip install -r requirements.txt -r requirements_dev.txt -r requirements_all_ds.txt

COPY . ./

# Upgrade node to LTS 6.11.2
RUN cd ~
RUN wget https://nodejs.org/download/release/v6.11.2/node-v6.11.2-linux-x64.tar.gz
RUN sudo tar --strip-components 1 -xzvf node-v* -C /usr/local

# Upgrade npm
RUN npm upgrade npm

RUN npm install && npm run build && rm -rf node_modules
RUN chown -R redash /app
USER redash
Expand Down

0 comments on commit 0b838e4

Please sign in to comment.