thiagowfx's avatar

¬ just serendipity 🍀 (not just serendipity)

Alpine Linux: Dockerfile: install package from edge

• 65 words • 1 min • updated

⚠️ This post is over one year old. It may no longer be up to date or relevant. Opinions may have changed.

Problem statement: Given a Dockerfile based on a fixed release of Alpine Linux (e.g. FROM alpine:3.22), install a package from edge (i.e. a package that did not yet make it to a fixed release).

The approach is similar to package pinning, by providing a custom --repository to apk add:

dockerfile
RUN apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing gliderlabs-sigil vals

Replace “testing” with “community” or “main” as needed.