# swiftlang/swift-docker

Docker Official Image packaging for Swift

Repository: https://github.com/swiftlang/swift-docker
Canonical: https://ross.abutalabs.com/products/swift-docker
Homepage: https://swift.org
Language: Dockerfile
License: Apache-2.0
License Family: permissive
Last push: 2026-08-24T04:15:18+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 3926, "days_push": 9, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1425, forks 230 (observed 2026-08-28T04:04:41.509299+00:00)

## What it is
The official Docker image packaging for the Swift programming language, published to Docker Hub as the `swift` image. It provides full images with the Swift compiler and slim runtime-only images suitable for multi-stage builds.

## Use cases
- run swift in a container
- docker image for swift programming language
- build and run swift apps in docker
- slim runtime image for deployed swift binaries
- swift repl in a container
- ci environment for building swift packages

## When to choose
- you want the official, maintained Swift Docker image
- you need a reproducible Swift build or CI environment
- you want multi-stage builds producing small runtime images

## When to avoid
- you need a Swift toolchain outside Docker
- you target platforms not covered by the published images

## Facets
- artifact type: infra-config
- maturity: active
- function: container-runtime, developer-tools, compiler
- domain: developer-tools, programming-languages
- platform: cross-platform
- tags: docker-images, swift, official-image, multi-stage-builds, containers, docker, linux

## Member repositories
- swiftlang/swift-docker (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:41.509299+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:37:32.391556+00:00, confidence not recorded.
  - readme: https://github.com/swiftlang/swift-docker (fetched 2026-08-28T04:04:41.509299+00:00, sha 5f757d530b25)
  - homepage: https://swift.org (fetched 2026-08-29T11:49:24.962033+00:00, sha 2aeb21181ab9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
