diff --git a/.env b/.env index ebace07..97094a0 100755 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ # target -REG=zima1.abutili.net:3002 +REG=git.abutili.net NS=images IMG=base diff --git a/Dockerfile b/Dockerfile index f31c489..0a41fbe 100755 --- a/Dockerfile +++ b/Dockerfile @@ -11,11 +11,22 @@ LABEL org.opencontainers.image.title="base" \ org.opencontainers.image.created="${BUILD_DATE}" \ org.opencontainers.image.source="https://git.abutili.net/images/base" +# Set standard environment variables +ENV LANG=C.UTF-8 \ + LC_ALL=C.UTF-8 \ + TZ=UTC + # Install essential base system dependencies +# tini: Proper init process for containers +# tzdata: Timezone data for applications +# jq: JSON processor for scripts/healthchecks RUN apt-get update && apt-get install -y --no-install-recommends \ ca-certificates \ curl \ bash \ + tini \ + tzdata \ + jq \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* @@ -26,3 +37,6 @@ WORKDIR /workspace # Default shell SHELL ["/bin/bash", "-eo", "pipefail", "-c"] + +# Use tini as the entrypoint to handle signal forwarding and zombie reaping +ENTRYPOINT ["/usr/bin/tini", "--"] diff --git a/README.md b/README.md index 319d9d4..3a7f1cf 100755 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@ -# Container Build and Publish Template +# Base Image -This repository provides a basic template for building and publishing container images using Gitea Actions. +This repository provides a minimal, Debian-based foundation image used by other custom images. ## Environment Variables The following environment variables are expected to be set in the `.env` file for local development, and as Gitea repository or organization variables for CI/CD: * `REG`: The container registry hostname (e.g., `zima1.abutili.net:3002`) -* `NS`: The namespace/project within the registry (e.g., `devops`) -* `IMG`: The image name (e.g., `container-build-publish`) +* `NS`: The namespace/project within the registry (e.g., `images`) +* `IMG`: The image name (e.g., `base`) Example `.env` file: ``` REG=zima1.abutili.net:3002 -NS=devops -IMG=container-build-publish +NS=images +IMG=base ``` ## Gitea Secrets