Commit 4d35c3a1 authored by Heimo Stranner's avatar Heimo Stranner
Browse files

add node 20 rootless

parent adf20a91
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -49,6 +49,12 @@ build-node-non-root-18:
    DIR: node-non-root-18
    NAME: node-non-root-18

build-node-non-root-20:
  extends: .build-base
  variables:
    DIR: node-non-root-20
    NAME: node-non-root-20

build-mvn-non-root-17:
  extends: .build-base
  variables:
+11 −0
Original line number Diff line number Diff line
@@ -17,6 +17,17 @@ npm ERR! errno -1
npm ERR! Error: spawn EPERM
`

### Node 20 rootless

`registry.reset.inso-w.at/pub/docker/node-non-root-20` is based on the node:20 image but adds a user `build` and sets it as the default user. This is done primarily to prevent things like `npm ci` to run into errors like

`
npm ERR! code EPERM
npm ERR! syscall spawn
npm ERR! errno -1
npm ERR! Error: spawn EPERM
`

### Maven 3 JDK 17 rootless

`registry.reset.inso-w.at/pub/docker/mvn-non-root-17` is based on the mvn:3-openjdk-17 image but adds a user `build` and sets it as the default user.
+3 −0
Original line number Diff line number Diff line
FROM node:20
RUN useradd -m build
USER build