Add a node image
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Elara 2023-08-15 20:30:35 -07:00
parent 263ead47f7
commit 1d224f278b
4 changed files with 51 additions and 0 deletions

View File

@ -16,6 +16,7 @@ docker pull gitea.elara.ws/elara6331/golang:latest
- `golang`: An alpine-based image with Go installed - `golang`: An alpine-based image with Go installed
- `webserver`: A very simple webserver - `webserver`: A very simple webserver
- `go-import-redirector`: rsc's [go-import-redirector](https://github.com/rsc/go-import-redirector) project - `go-import-redirector`: rsc's [go-import-redirector](https://github.com/rsc/go-import-redirector) project
- `node`: An alpine-based image with NodeJS installed
### Acknowledgements ### Acknowledgements

3
node/README.md Normal file
View File

@ -0,0 +1,3 @@
# node
The [node image](https://gitea.elara.ws/Elara6331/-/packages/container/node/latest) is an Alpine Edge image with the latest version of NodeJS from Alpine's [nodejs package](https://pkgs.alpinelinux.org/package/edge/main/riscv64/nodejs) installed

40
node/apko.yaml Normal file
View File

@ -0,0 +1,40 @@
contents:
repositories:
- https://dl-cdn.alpinelinux.org/alpine/edge/main
packages:
- busybox
- nghttp2
- nodejs
accounts:
groups:
- groupname: node
gid: 65532
users:
- username: node
uid: 65532
gid: 65532
run-as: 65532
paths:
- path: /app
type: directory
permissions: 0o777
uid: 65532
gid: 65532
work-dir: /app
environment:
NODE_PORT: 3000
PATH: '/usr/sbin:/sbin:/usr/bin:/bin'
NPM_CONFIG_UPDATE_NOTIFIER: false
entrypoint:
command: /usr/bin/node
cmd: --help
archs:
- amd64
- arm64
- riscv64

7
node/build.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
apko publish \
--sbom=false \
--package-version-tag=nodejs \
apko.yaml \
gitea.elara.ws/elara6331/node:latest