Commit 73f1af52 authored by Erlend Ydse's avatar Erlend Ydse
Browse files

Update npm in dockerfile

parent 096f2e7d
Pipeline #128381 passed with stage
in 1 minute and 9 seconds
......@@ -7,6 +7,14 @@ ARG DOMAIN
ARG URL_PREFIX
ARG PORT_PREFIX
# Install NodeJS
RUN apt-get update -y
RUN apt-get install -y curl
RUN curl -fsSL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
RUN npm install npm@latest -g
RUN npm install -g cordova
# Set working dir
WORKDIR /app
......@@ -18,7 +26,7 @@ RUN echo "const HOST = '${URL_PREFIX}${DOMAIN}:${PORT_PREFIX}${GROUPID}';" > ./w
# Install cordova
# Also install shelljs because of windows for some reason
RUN apt-get update -y && apt-get install npm -y && npm install -g cordova && npm install shelljs
RUN apt-get update -y && npm install shelljs
# Run cordova app
CMD [ "cordova", "run", "browser", "--release", "--port=3000" ]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment