Alpine Linux 3.5 harden with an unprivileged User
1.2K

Alpine Linux harden with an unprivileged user
docker pull ellerbrock/alpine-harden
As Base Image i use Alpine Linux which is lightweight Distribution with a small surface area for security concerns, but with enough functionality for development and interactive debugging.
To prevent zombie reaping processes i run dumb-init as PID 1 which forwards signals to all processes running in the container.
These Settings are optional, if not set the default values will be used.
# Optional Configuration Parameter
ARG SERVICE_USER # Username
ARG SERVICE_HOME # User Home Directory
# Default Settings
ENV SERVICE_USER ${SERVICE_USER:-app}
ENV SERVICE_HOME ${SERVICE_HOME:-/home/${SERVICE_USER}}
Documentation: https://docs.docker.com/compose/compose-file/#/args
Get the latest News about Web Development, Open Source, Tooling, Server & Security
Content type
Image
Digest
Size
2.1 MB
Last updated
almost 7 years ago
docker pull ellerbrock/alpine-harden