Commit Graph

16 Commits

Author SHA1 Message Date
Michael (Parker) Parker
7ca5ed1a16 Update nodejs yolks (#295)
* Update nodejs yolks

Move user creation and env to not rebuild on every update if not needed.

update apt install command to new format

update npm install command to properly be global to resolve ts-node issue

update npm install commands to install latest version available for node version

* fix build

moves section that sets the user and env vars to the bottom again.

I forgot the order of ops matters.

* fix issues with corepack

npm doesn't install a working version of corepack unless it's tagged to latest.
2025-04-11 18:47:17 +02:00
gOOvER
714924a140 add mising tini to node17 2023-11-01 16:26:43 +01:00
Quinten
94aa88bdce Merge branch 'master' into tini 2023-09-06 19:37:29 +02:00
Paul
02aad5199c Add libnss3 to nodejs (#183)
* Add libnss3 to nodejs
* Lock down some npm version

---------

Co-authored-by: Quinten <josdekurk@gmail.com>
2023-09-06 19:29:47 +02:00
Quinten
5b354d0efc Remove extra empty line 2023-08-13 10:53:28 +02:00
Quinten
47f6300258 Nodejs: Add Typescript support 2023-08-13 10:47:33 +02:00
Quinten
baf272435a Use SIGINT as stop signal 2023-08-09 19:24:33 +02:00
Quinten
e6c1b4cc4a tini part 1 2023-07-19 18:01:39 +02:00
Loki
e1243e6917 Fix npm version compatibility
The latest version of NPM for NodeJS 17 going off https://nodejs.org/en/download/releases is 8.11.0. Leaving it as @latest results in the following error during build:

 => ERROR [3/5] RUN         npm install npm@latest--location=global                                                                                                                                                                                                                                                     0.9s
------                                                                                                                                                                                                                                                                                                                       
 > [3/5] RUN         npm install npm@latest--location=global:
#0 0.846 npm ERR! code EINVALIDTAGNAME
#0 0.847 npm ERR! Invalid tag name "latest--location=global" of package "npm@latest--location=global": Tags may not have any characters that encodeURIComponent encodes.
#0 0.849 
#0 0.849 npm ERR! A complete log of this run can be found in:
#0 0.849 npm ERR!     /root/.npm/_logs/2023-05-14T21_06_16_353Z-debug-0.log
------
Dockerfile:9
--------------------
   7 |                 && useradd -m -d /home/container container
   8 |     
   9 | >>> RUN         npm install npm@latest--location=global
  10 |     
  11 |     USER        container
--------------------
ERROR: failed to solve: process "/bin/sh -c npm install npm@latest--location=global" did not complete successfully: exit code: 1


Additionally, there was a message during build about -g being depreciated and using --location=global instead, so I figured as long as I'm making a change to this anyways I may as well switch that out. With the first change it builds successfully, with the second change it builds successfully without the depreciation message.
2023-05-14 14:08:37 -07:00
gOOvER
f59be34e5f add ping cmd 2023-03-19 09:45:46 +01:00
gOOvER
112a4fd3dd removed 2nd layer of npm install 2023-01-28 16:02:52 +01:00
gOOvER
dbd807f77b add npm install npm@latest -g 2023-01-27 20:11:24 +01:00
Ethan Adams
38ef2e77c5 Added libtool installation to Node.js 17 Docker file 2021-12-08 14:09:53 -05:00
gOOvER
d5e1e2e5ec update all nodejs to bullseye-slim 2021-12-08 07:30:18 +01:00
Alex
8ba8f2f811 feat: ARM64 support for Node.js
resolves #10
2021-10-22 15:24:42 +03:00
Alex
b24985022a feat: add Node.js 17 image 2021-10-22 14:41:47 +03:00