Skip to content

feat: add timezone support, explicit /tmp permissions, and pin tzdata to 2025c-r0#12

Merged
Amnoor merged 3 commits intodevelopfrom
feat/runtime-tzdata
Mar 3, 2026
Merged

feat: add timezone support, explicit /tmp permissions, and pin tzdata to 2025c-r0#12
Amnoor merged 3 commits intodevelopfrom
feat/runtime-tzdata

Conversation

@Amnoor
Copy link
Contributor

@Amnoor Amnoor commented Mar 3, 2026

Summary

This PR adds timezone support to the Runtime Node image by installing tzdata=2025c-r0 in the builder stage, copying /usr/share/zoneinfo into the final scratch image with --chmod=555, and setting ENV TZ=UTC as the default timezone baked into the image. It also makes the /tmp permissions explicit by adding --chmod=1777 to its COPY instruction, which previously relied on the sticky-bit being preserved implicitly from the builder stage. Section numbering in the Dockerfile comments is updated to accommodate the new Timezone Support section. A follow-up fix pins tzdata to an exact Alpine package version (2025c-r0) and adds apk update before the install to ensure a reproducible and deterministic build, which resolved a failure in the PR test suite.

Files Changed

Added:

  • None

Modified:

  • Dockerfile

Deleted:

  • None

Key Changes

  • Added RUN apk update && apk add --no-cache tzdata=2025c-r0 to the builder stage, pinning the IANA timezone database to the exact Alpine package version 2025c-r0.
  • Added COPY --from=builder --chmod=555 /usr/share/zoneinfo /usr/share/zoneinfo to the runtime stage, copying the full timezone database from the builder into the final scratch image.
  • Added ENV TZ=UTC to the runtime stage, setting UTC as the default timezone baked into the image.
  • Changed /tmp copy from COPY --from=builder /target/tmp /tmp to COPY --from=builder --chmod=1777 /target/tmp /tmp, making the sticky-bit 1777 permissions explicit rather than relying on implicit preservation from the builder stage.
  • Updated Dockerfile section comment numbering: 2. Security3. Security, 3. Dependencies4. Dependencies, 4. Core5. Core, with the new 2. Timezone Support section inserted between DNS configuration and CA certificates.

@Amnoor Amnoor marked this pull request as draft March 3, 2026 12:21
@Amnoor Amnoor changed the title feat: add timezone support and explicit /tmp permissions to Dockerfile feat: add timezone support, explicit /tmp permissions, and pin tzdata to 2025c-r0 Mar 3, 2026
@Amnoor Amnoor marked this pull request as ready for review March 3, 2026 12:24
@Amnoor Amnoor merged commit db19985 into develop Mar 3, 2026
3 checks passed
@Amnoor Amnoor deleted the feat/runtime-tzdata branch March 3, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant