Automate image building and add some images
This commit is contained in:
5
static/README.md
Normal file
5
static/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# static
|
||||
|
||||
The [static image](https://gitea.elara.ws/Elara6331/-/packages/container/static/latest) is a basic image with just enough iles to run static binaries. It's meant to be used as a base image and is useless outside of that.
|
||||
|
||||
This image will only run static binaries (i.e. Go binaries with `CGO_ENABLED=0`) as it doesn't include musl or glibc
|
||||
23
static/apko.yaml
Normal file
23
static/apko.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
contents:
|
||||
repositories:
|
||||
- https://dl-cdn.alpinelinux.org/alpine/edge/main
|
||||
packages:
|
||||
- alpine-baselayout-data
|
||||
- alpine-release
|
||||
- ca-certificates-bundle
|
||||
- tzdata
|
||||
|
||||
accounts:
|
||||
groups:
|
||||
- groupname: nonroot
|
||||
gid: 65532
|
||||
users:
|
||||
- username: nonroot
|
||||
uid: 65532
|
||||
gid: 65532
|
||||
run-as: 65532
|
||||
|
||||
archs:
|
||||
- amd64
|
||||
- arm64
|
||||
- riscv64
|
||||
3
static/build.sh
Executable file
3
static/build.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
apko publish --sbom=false apko.yaml gitea.elra.ws/elara6331/static:latest
|
||||
Reference in New Issue
Block a user