focal
Image Ubuntu ultra-légère, sécurisée et optimisée pour la production – Sam Tech Lab
1.0K
This image provides a clean, stable, and minimal Ubuntu base to build production-ready Docker containers.
It is built from scratch using the official Ubuntu OCI rootfs, ensuring authenticity, lightness, and reproducibility.
Automatic monthly updates:
The image is rebuilt every month with the latest Ubuntu updates and security patches.
Designed to be secure, fast, and multi-purpose, it includes advanced APT optimizations, a non-root user, and system hardening for maximum reliability.
systemd, upstart)appuser) for safer container execution/tmp, /var/log, /var/lib/apt/listsen_US.UTF-8, UTC)umask 027| Category | Packages |
|---|---|
| System base | bash, cron, curl, gnupg, jq, netcat-openbsd, tzdata |
| System tools | systemd-standalone-sysusers, apt-utils, locales |
| Variable | Default value | Description |
|---|---|---|
PUID | 999 | Non-root user ID |
PGID | 999 | Non-root group ID |
HOME | /config | Home directory |
LANG | en_US.UTF-8 | Default locale |
TZ | UTC | Timezone |
DEBIAN_FRONTEND | noninteractive | Disables interactive APT prompts |
| Field | Value |
|---|---|
| OS | Ubuntu |
| Architectures | amd64, arm64 |
| Source | Ubuntu OCI RootFS |
| Maintainer | Sam Tech Lab |
| License | MIT |
| Update frequency | Monthly (automated) |
docker run -it --rm samtechrepo/focal:latest /bin/bash
FROM samtechrepo/focal:latest
RUN apt update && apt install -y nginx
CMD ["nginx", "-g", "daemon off;"]
This Dockerfile creates a custom image based on samtechrepo/focal:latest with NGINX preinstalled.
You can then build and test it locally:
docker build -t my-nginx .
docker run -d -p 8080:80 my-nginx
Create a file named docker-compose.yml:
services:
web:
image: samtechrepo/focal:latest
container_name: nginx-web
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./html:/var/www/html
environment:
TZ: "Europe/Paris"
PUID: 1000
PGID: 1000
command: >
bash -c "
apt update &&
apt install -y nginx &&
nginx -g 'daemon off;'
"
Then start the container :
docker compose up -d
This automatically pulls the optimized Ubuntu image from Sam Tech Lab, installs NGINX, and launches the web server at http://localhost:8080.
To stop the container :
docker compose down
Cette image fournit une base Ubuntu propre, stable et minimaliste pour construire des conteneurs Docker de production.
Elle est construite from scratch à partir du rootfs officiel Ubuntu OCI, garantissant authenticité, légèreté et reproductibilité.
Mises à jour automatiques mensuelles :
L’image est reconstruite chaque mois avec les dernières mises à jour et correctifs de sécurité Ubuntu officiels.
Conçue pour être sécurisée, rapide et multi-usage, elle inclut des optimisations APT avancées, un utilisateur non-root et un durcissement du système pour une compatibilité maximale.
systemd, upstart)appuser) pour une exécution plus sûre/tmp, /var/log, /var/lib/apt/listsen_US.UTF-8, UTC)root verrouilléumask 027 par défaut| Catégorie | Paquets |
|---|---|
| Base système | bash, cron, curl, gnupg, jq, netcat-openbsd, tzdata |
| Outils système | systemd-standalone-sysusers, apt-utils, locales |
| Variable | Valeur par défaut | Description |
|---|---|---|
PUID | 999 | Identifiant de l’utilisateur non-root |
PGID | 999 | Identifiant de groupe non-root |
HOME | /config | Répertoire personnel |
LANG | en_US.UTF-8 | Locale par défaut |
TZ | UTC | Fuseau horaire |
DEBIAN_FRONTEND | noninteractive | Empêche les invites APT interactives |
| Champ | Valeur |
|---|---|
| Système | Ubuntu |
| Architecture | amd64, arm64 |
| Source | Ubuntu OCI RootFS |
| Mainteneur | Sam Tech Lab |
| Licence | MIT |
| Mise à jour | Mensuelle (automatisée) |
docker run -it --rm samtechrepo/focal:latest /bin/bash
FROM samtechrepo/focal:latest
RUN apt update && apt install -y nginx
CMD ["nginx", "-g", "daemon off;"]
Ce Dockerfile crée une image personnalisée basée sur samtechrepo/focal:latest, avec NGINX préinstallé.
Vous pouvez ensuite la construire et la tester localement :
docker build -t my-nginx .
docker run -d -p 8080:80 my-nginx
Créer un fichier nommé docker-compose.yml :
services:
web:
image: samtechrepo/focal:latest
container_name: nginx-web
restart: unless-stopped
ports:
- "8080:80"
volumes:
- ./html:/var/www/html
environment:
TZ: "Europe/Paris"
PUID: 1000
PGID: 1000
command: >
bash -c "
apt update &&
apt install -y nginx &&
nginx -g 'daemon off;'
"
Puis lancer le conteneur :
docker compose up -d
Cela télécharge automatiquement l’image Ubuntu optimisée Sam Tech Lab, installe Nginx, et démarre le serveur web sur http://localhost:8080.
Arrêter le conteneur :
docker compose down
This project is distributed under the MIT license — see the LICENSE file for more details.
Ce projet est distribué sous la licence MIT — consultez le fichier LICENSE pour plus de détails.
Copyright (c) 2025 Sam Tech Lab
Content type
Image
Digest
sha256:67b41e4f9…
Size
87 MB
Last updated
6 months ago
docker pull samtechrepo/focal:2026.02