Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TDT4242 Spring 2021 – T17
tdt4242-T17
Commits
73f1af52
Commit
73f1af52
authored
Apr 15, 2021
by
Erlend Ydse
Browse files
Update npm in dockerfile
parent
096f2e7d
Pipeline
#128381
passed with stage
in 1 minute and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend/Dockerfile
View file @
73f1af52
...
...
@@ -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" ]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment