HUB
Sign inSign up
apk-build logo

11notes/apk-build

By 11notes

•Updated over 1 year ago

Run Alpine build tools as build layer. Small, lightweight, secure and fast 🏔️

Image
0

1.4K

11notes/apk-build repository overview

Banner

⁠🏔️ Alpine - APK build

size version pulls activity commit-last stars

Build custom APK's with Docker

⁠SYNOPSIS

What can I do with this? Well simply put, you can build your own APK for Alpine within Docker in a build layer. This gives you the ability to use your custom APK with the normal installer.

⁠EXAMPLES

⁠amd64.dockerfile

# :: Build
  FROM 11notes/apk-build:stable as build
  ENV APK_NAME="custom"

  RUN set -ex; \
    cd ~; \
    newapkbuild ${APK_NAME};

  COPY ./build /apk/${APK_NAME}

  RUN set -ex; \
    cd ~/${APK_NAME}; \
    abuild checksum; \
    abuild -r;

# :: Header
  FROM 11notes/alpine:stable
  COPY --from=build /apk/packages/apk /apk/custom <sup>1</sup>
  RUN set -ex; \
    apk add --no-cache --allow-untrusted --repository /apk/custom \
      custom; \

⁠DEFAULT SETTINGS

ParameterValueDescription
userdockeruser docker
uid1000user id 1000
gid1000group id 1000
home/apkhome directory of user docker

⁠ENVIRONMENT

ParameterValueDefault
TZTime Zone⁠
DEBUGShow debug information

⁠PARENT IMAGE

⁠BUILT WITH

⁠TIPS

  • Only use rootless container runtime (podman, rootless docker)
  • Allow non-root ports < 1024 via echo "net.ipv4.ip_unprivileged_port_start=53" > /etc/sysctl.d/ports.conf
  • Use a reverse proxy like Traefik, Nginx to terminate TLS with a valid certificate
  • Use Let’s Encrypt certificates to protect your SSL endpoints

⁠DISCLAIMERS

  • 1 Only use this image as a build layer in your project!

⁠ElevenNotes™️

This image is provided to you at your own risk. Always make backups before updating an image to a new version. Check the changelog for breaking changes.

Tag summary

Content type

Image

Digest

sha256:51ce05619…

Size

87.4 MB

Last updated

over 1 year ago

docker pull 11notes/apk-build:stable