The letter A styled as Alchemists logo. lchemists
Published March 28, 2021 Updated September 30, 2026
Docker Alpine Base Icon

Docker Alpine Base

4.7.0

Provides a base Alpine Linux Docker image with a minimal set of tooling. Great for being used as a foundational image for building on top of, for example, the Docker Alpine Ruby image.

Features

  • Installs CA Certificates.

  • Installs Bash.

  • Installs Curl.

  • Installs GnuPG.

  • Installs and configures Git (including default branch).

  • Installs OpenSSL.

  • Installs OpenSSH.

  • Installs and configures Vim as default editor.

  • Sets xterm as default terminal.

Requirements

Setup

To set up the project, run:

git clone https://github.com/bkuhlmann/docker-alpine-base.git
cd docker-alpine-base
git checkout 4.7.0

Usage

All versions of this image can be found on Docker Hub. The image can be pulled as follows:

docker pull bkuhlmann/alpine-base:latest  # Pull latest version.
docker pull bkuhlmann/alpine-base:4.7.0   # Pull specific version.

You can also build on top of this image via your Dockerfile:

FROM bkuhlmann/alpine-base:latest  # Latest version.
FROM bkuhlmann/alpine-base:4.7.0   # Specific version.

Development

To contribute, run:

git clone https://github.com/bkuhlmann/docker-alpine-base.git
cd docker-alpine-base

To build, run:

bin/build

To use the console, run:

bin/console

To deploy the latest version, run:

bin/deploy

To automatically calculate the next logical version and deploy it, run:

bin/deploy p

Versions are calculated and created via the Milestoner gem. Best practice is to deploy both the latest version and next version. Example:

bin/deploy
bin/deploy p

The above will ensure new images are created with the following tags:

  • latest: This is the most recent stable version which may or may not be ahead of the last version released.

  • <major>.<minor>.<patch>: This the next logical version as calculated and created by Milestoner.

Tests

To test, run:

bin/console
bash --version
curl --version
git --version
gpg --version
openssl version
ssh -V
vim --version

Credits