apk

Apk Docker Image

这个Docker镜像用于快速、便捷地构建Alpine Linux的自定义apk包,支持本地项目构建和稀疏checkout官方Alpine包,输出结果存于指定目录便于后续使用或导出。

下载次数: 0状态:社区镜像维护者:11notes仓库类型:镜像最近更新:
下载命令
点击查看

APK

Build Alpine apk, quick and easy

SYNOPSIS 📖

What can I do with this? This image will let you build your own custom apk’s for Alpine in a self-containing and easy manner. Simply add all the projects you want to build to the /src directory and execute amake. This will create all your apk’s and put them into /apk for use in other layers or to export them. You can also sparse checkout and build official packages from different releases by simply calling amake python3 main 3.18 which would build python3 in the latest version of https://pkgs.alpinelinux.org/package/v3.18/main/x86_64/python3 from the main branch. Since this is a sparse checkout, it will only download the python3 folder in question and not the entire aports repo, which makes for very quick builds.

BUILD 🚧

yaml
FROM 11notes/apk:stable AS build
# build your apk
RUN set -ex; \
  amake python3 main 3.19

FROM 11notes/alpine:stable
# copy apk
COPY --from=build /apk/ /apk
# install custom apk
RUN set -ex; \
  apk --no-cache --allow-untrusted --repository /apk add \
    python3=~3.11; \
  rm -rf /apk;

DEFAULT SETTINGS 🗃️

ParameterValueDescription
userdockeruser name
uid1000user identifier
gid1000group identifier
home/buildhome directory of user docker

ENVIRONMENT 📝

ParameterValueDefault
TZTime Zone
DEBUGWill activate debug option for container image and app (if available)

MAIN TAGS 🏷️

These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.

  • https://hub.docker.com/r/11notes/apk/tags?name=3.22
  • https://hub.docker.com/r/11notes/apk/tags?name=stable

There is no latest tag, what am I supposed to do about updates?

It is of my opinion that the :latest tag is dangerous. Many times, I’ve introduced breaking changes to my images. This would have messed up everything for some people. If you don’t want to change the tag to the latest https://semver.org/, simply use the short versions of https://semver.org/. Instead of using :3.22 you can use :3. Since on each new version these tags are updated to the latest version of the software, using them is identical to using :latest but at least fixed to a major or minor version.

If you still insist on having the bleeding edge release of this app, simply use the :rolling tag, but be warned! You will get the latest version of the app instantly, regardless of breaking changes or security issues or what so ever. You do this at your own risk!

REGISTRIES ☁️

docker pull 11notes/apk:3.22
docker pull ghcr.io/11notes/apk:3.22
docker pull quay.io/11notes/apk:3.22

SOURCE 💾

  • https://github.com/11notes/docker-APK

PARENT IMAGE 🏛️

  • alpine:3.22

BUILT WITH 🧰

  • https://www.alpinelinux.org/
  • https://github.com/11notes/docker-util

GENERAL TIPS 📌

  • Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS and to protect your endpoints
  • Use Let’s Encrypt DNS-01 challenge to obtain valid SSL certificates for your services

ElevenNotes™️

This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the https://github.com/11notes/docker-apk/releases for breaking changes. If you have any problems with using this image simply raise an https://github.com/11notes/docker-apk/issues, thanks. If you have a question or inputs please create a new https://github.com/11notes/docker-apk/discussions instead of an issue. You can find all my other repositories on https://github.com/11notes?tab=repositories.

created 01.09.2025, 13:07:52 (CET)

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 apk 镜像标签

docker pull docker.xuanyuan.run/11notes/apk:<标签>

DockerHub 原生拉取命令

docker pull 11notes/apk:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告