Skip to content

Commit 4d5bb17

Browse files
authored
Merge pull request #190 from alison985/mozilla_master_as_of_m8.0
upgrade node and npm in dockerfile
2 parents 75b788d + 84bbae9 commit 4d5bb17

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ COPY requirements.txt requirements_dev.txt requirements_all_ds.txt ./
66
RUN pip install -r requirements.txt -r requirements_dev.txt -r requirements_all_ds.txt
77

88
COPY . ./
9+
10+
# Upgrade node to LTS 6.11.2
11+
RUN cd ~
12+
RUN wget https://nodejs.org/download/release/v6.11.2/node-v6.11.2-linux-x64.tar.gz
13+
RUN sudo tar --strip-components 1 -xzvf node-v* -C /usr/local
14+
15+
# Upgrade npm
16+
RUN npm upgrade npm
17+
918
RUN npm install && npm run build && rm -rf node_modules
1019
RUN chown -R redash /app
1120
USER redash

0 commit comments

Comments
 (0)