HUB
Sign inSign up

ksurl/baseimage-alpine

By ksurl

•Updated 30 days ago

Image
0

2.2K

ksurl/baseimage-alpine repository overview

⁠Docker alpine base image

  • Based on alpine:3.12
  • bash
  • s6-overlay

⁠Usage

⁠Dockerfile

FROM ghcr.io/ksurl/baseimage-alpine

⁠Config scripts

update root/etc/cont-init.d/30-config with any additional settings you may need to prepare before starting any services.

e.g. checking for config file, setting permissions, application version checking, package installs

⁠Create service

  1. Create folder in root/etc/services.d
  2. create run file and replace tail with your own command:
    #!/usr/bin/with-contenv bash exec s6-setuidgid abc /usr/bin/tail -f /dev/null
⁠Optional

Create finish file in the same folder as run for clean shutdown and replace pkill with your own command: #!/usr/bin/with-contenv bash exec s6-setuidgid abc /usr/bin/pkill tail

⁠Parameters

ParameterFunctionDefault
-e PUIDSet uid911
-e PGIDSet gid911
-e TZSpecify a timezone to useUTC
Tag summary
Recent tags
Content type
Image
Digest
sha256:889930112…
Size
6.2 MB
Last updated
30 days ago
docker pull ksurl/baseimage-alpine:latest