|
14 | 14 | docker pull ghcr.io/kloudkit/base-image:latest |
15 | 15 | ``` |
16 | 16 |
|
17 | | -Use it as the first `FROM` in any Kloudkit-compatible Dockerfile: |
| 17 | +Use it as the first `FROM` in any KloudKIT-compatible Dockerfile: |
18 | 18 |
|
19 | 19 | ```dockerfile |
20 | 20 | FROM ghcr.io/kloudkit/base-image:latest |
21 | 21 | # β¦install your app hereβ¦ |
22 | 22 | ``` |
23 | 23 |
|
| 24 | +## What's Inside |
| 25 | + |
| 26 | +This ultra-minimal base layer provides: |
| 27 | + |
| 28 | +- **Size-optimized Debian** with aggressive cleanup configurations. |
| 29 | +- **Essential tools** like `curl`, `wget`, `gnupg`, and `unzip` pre-installed. |
| 30 | +- **Smart package management** that blocks unnecessary services by default. |
| 31 | +- **Multi-version support** with opt-in access to newer Debian releases. |
| 32 | +- **Security hardening** with sensible defaults for container environments. |
| 33 | +- **User setup** with a non-root `kloud` user ready for your applications. |
| 34 | + |
| 35 | +## Why Use This Base |
| 36 | + |
| 37 | +- **Smaller images:** Extensive file exclusions and package filtering reduce bloat. |
| 38 | +- **Faster builds:**Common tools pre-installed, optimized APT configuration. |
| 39 | +- **Consistent foundation:** All KloudKIT projects start from the same reliable base. |
| 40 | +- **Flexible packaging:** Access to both stable and testing repositories when needed. |
| 41 | +- **Production ready:** Battle-tested configurations used across KloudKIT infrastructure. |
| 42 | + |
| 43 | +## Getting Started |
| 44 | + |
| 45 | +The base image includes everything needed for most containerized applications. |
| 46 | +Simply extend it with your application-specific requirements: |
| 47 | + |
| 48 | +```dockerfile |
| 49 | +FROM ghcr.io/kloudkit/base-image:latest |
| 50 | + |
| 51 | +# Install your application dependencies |
| 52 | +RUN apt-get update && apt-get install -y your-packages |
| 53 | + |
| 54 | +# Copy and configure your application |
| 55 | +COPY . /app |
| 56 | +WORKDIR /app |
| 57 | + |
| 58 | +# Switch to non-root user |
| 59 | +USER kloud |
| 60 | +``` |
| 61 | + |
24 | 62 | ## License |
25 | 63 |
|
26 | 64 | Released under the [**MIT License**](https://github.com/kloudkit/base-image/blob/main/LICENSE) |
0 commit comments