/baseimage

Alpine-based baseimage and entrypoint.sh script with tini and su-exec

Primary LanguageShellMIT LicenseMIT

baseimage Build Status

Alpine-based baseimage and entrypoint.sh script with tini and su-exec.

Usage

FROM kudato/baseimage:alpine

RUN apk add ...
COPY myscript.sh .

CMD [ "myscript.sh" ]

Supported tags

See on Docker Hub page.

Environment variables

  • TZ - set timezone(default UTC);
  • CMD_USER - specify user(default root);
  • CMD_USER_UID - specify user uid;
  • USER_SHELL - specify user;
  • [...]_INIT_SCRIPT=path_to_file - run script before main command, to run multiple scripts, create variables with unique names for each.

Tests

  • Install docker and docker-compose;
  • export FROM=alpine:latest and docker-compose up --build.