Mbonea commited on
Commit
07dca11
1 Parent(s): 4adb816

latest node tested

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -16
Dockerfile CHANGED
@@ -36,22 +36,14 @@ RUN apt-get install -y \
36
  RUN wget https://github.com/Alex313031/thorium/releases/download/M117.0.5938.157/thorium-browser_117.0.5938.157_amd64.deb && \
37
  dpkg -i thorium-browser_117.0.5938.157_amd64.deb
38
 
39
- # Install Node.js and npm
40
- # Install NVM using sudo apt
41
- RUN apt-get update && \
42
- apt-get install -y curl && \
43
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
44
-
45
- # Activate NVM in the current shell
46
- SHELL ["/bin/bash", "--login", "-c"]
47
- RUN source "$HOME/.nvm/nvm.sh" && \
48
- source "$HOME/.bashrc" && \
49
- nvm --version && \
50
- nvm install 18.17.0 && \
51
- nvm alias default 18.17.0 && \
52
- npm install -g npm@9.6.7
53
- USER admin
54
-
55
  # Copy the application code
56
  COPY --chown=admin . /srv
57
 
 
36
  RUN wget https://github.com/Alex313031/thorium/releases/download/M117.0.5938.157/thorium-browser_117.0.5938.157_amd64.deb && \
37
  dpkg -i thorium-browser_117.0.5938.157_amd64.deb
38
 
39
+ RUN apt-get update && apt-get install -y \
40
+ software-properties-common \
41
+ npm
42
+ RUN npm install npm@latest -g && \
43
+ npm install n -g && \
44
+ n latest
45
+ RUN echo npm -v
46
+ RUN node -v
 
 
 
 
 
 
 
 
47
  # Copy the application code
48
  COPY --chown=admin . /srv
49