Alpine-based baseimage and entrypoint.sh
script with tini and su-exec.
FROM kudato/baseimage:alpine
RUN apk add ...
COPY myscript.sh .
CMD [ "myscript.sh" ]
See on Docker Hub page.
TZ
- set timezone(defaultUTC
);CMD_USER
- specify user(defaultroot
);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.
- Install docker and docker-compose;
export FROM=alpine:latest
anddocker-compose up --build
.