alpine
Alpine Linux based image that bundles tzdata, su-exec, and some useful entrypoint scripts.
2.6K
https://github.com/martinussuherman/alpine
This is an Alpine Linux or Minimal Alpine Linux image with glibc based image that bundles tzdata, su-exec, and some useful entrypoint scripts.
Creates/updates user with userid, group, groupid and home directory.
The group and the home directory are assigned to the user, with shell set based on values of environment variable ENOLOGIN (see below for more info).
User created/updated from environment variable EUSER (default docker-user), with uid from environment variable EUID (default 1001).
Group created/updated from environment variable EGROUP (default docker-group), with gid from environment variable EGID (default 1001).
Home directory created/updated from environment variable EHOME (default /home/docker-user).
If variable ENOLOGIN equals yes then use /sbin/nologin as shell, else use default shell (/bin/sh).
If variable ECHOWNHOME equals yes then the home directory will be chown'ed to EUSER:EGROUP
Chown directories in ECHOWNDIRS, create them if not exist.
Chown files in ECHOWNFILES, create them if not exist.
entrypoint-su-exec [command] [params...]
First creates/updates user, group and home directory, by executing set-user-group-home.
Then uses su-exec to exec $ENTRYPOINT_COMMAND with the given parameters as the user $EUSER.
entrypoint-exec [command] [params...]
First creates/updates user, group and home directory, by executing set-user-group-home.
Then uses exec to exec $ENTRYPOINT_COMMAND with the given parameters (as root).
entrypoint-crond [params...]
First creates/updates user, group and home directory, by executing set-user-group-home.
Then sets the crontab file $CROND_CRONTAB as the crontab of the user $EUSER.
Finally executes crond with the given parameters.
Content type
Image
Digest
sha256:ecddca743…
Size
9.2 MB
Last updated
over 3 years ago
Requires Docker Desktop 4.37.1 or later.