A mimalloc static compiled Go toolchain.
3.9K
A mimalloc static compiled golang toolchain.
| OS/ARCH | Description |
|---|---|
linux/amd64 | 64-bit x86 architecture for Linux operating systems |
linux/arm64 | 64-bit ARM architecture for Linux operating systems |
| Type | Container | Function |
|---|---|---|
| Environment | CGO_ENABLED | Optional Static Compilation |
| Environment | EUID | Optional Effective User ID |
| Environment | EGID | Optional Effective Group ID |
| Environment | UMASK | Optional Default permissions |
| Environment | SUGGEST | Optional Set suggestion messages |
| Volume | /mnt | Optional Bind mount volume |
CGO_ENABLED=0 by default to enable static compilation.
musl struggles with multi-threaded performance compared to glibcmimalloc patched libc.a to replace musl mallocEUID / EGID environment variablesmini:mini as defaultUMASK defaults to 0022SUGGEST defaults to trueapk permitted for mini with doasFROM kgrv/golang AS build
Set GOARCH and GOOS for target
build stage from kgrv/sftpgo:
FROM --platform=${BUILDPLATFORM} kgrv/golang AS build
ARG TARGETARCH
ARG TARGETOS
ARG GOARCH="${TARGETARCH}"
ARG GOOS="${TARGETOS}"
...
docker run -it kgrv/golang
docker run -it -v $(pwd):/mnt kgrv/golang
Important
Argument
--useris not supported, please useEUID/EGID.
docker run -it -e EUID=$(id -u) -e EGID=$(id -g) kgrv/golang
docker run -it kgrv/golang --BECOME_ROOT
doas apk add PACKAGE
Content type
Image
Digest
sha256:866404b6d…
Size
67.9 MB
Last updated
13 days ago
docker pull kgrv/golang