{"id":11165149,"url":"https://github.com/swiftlang/swift-docker","last_synced_at":"2025-05-15T15:05:37.860Z","repository":{"id":37359673,"uuid":"47356910","full_name":"swiftlang/swift-docker","owner":"swiftlang","description":"Docker Official Image packaging for Swift","archived":false,"fork":false,"pushed_at":"2025-04-24T09:15:13.000Z","size":760,"stargazers_count":1384,"open_issues_count":57,"forks_count":194,"subscribers_count":53,"default_branch":"main","last_synced_at":"2025-04-24T10:26:39.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://swift.org","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swiftlang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-12-03T20:01:34.000Z","updated_at":"2025-04-24T09:15:17.000Z","dependencies_parsed_at":"2023-10-28T00:25:01.769Z","dependency_job_id":"1b565a55-37c0-407c-8e4e-ab9eff7fd2a7","html_url":"https://github.com/swiftlang/swift-docker","commit_stats":null,"previous_names":["swiftlang/swift-docker"],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftlang%2Fswift-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftlang%2Fswift-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftlang%2Fswift-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftlang%2Fswift-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swiftlang","download_url":"https://codeload.github.com/swiftlang/swift-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254364270,"owners_count":22058878,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-06-14T02:04:58.714Z","updated_at":"2025-05-15T15:05:37.792Z","avatar_url":"https://github.com/swiftlang.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile","HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# swift-docker\n\n\u003cimg src=\"https://swift.org/assets/images/swift.svg\" alt=\"Swift logo\" height=\"70\" \u003e\n\n### Docker images for [Swift](https://swift.org).\n\n#### You can find the Docker Hub repo here: [https://hub.docker.com/_/swift/](https://hub.docker.com/_/swift/)\n\n#### Nightly image tags are published here: [https://hub.docker.com/r/swiftlang/swift](https://hub.docker.com/r/swiftlang/swift)\n\n\n### Usage\n\n##### Pull the Docker image from Docker Hub:\n\n```bash\ndocker pull swift\n```\n\n##### Create a container from the image and run it:\n\n```bash\ndocker run -it swift /bin/bash\n```\n\nIf you want to run the Swift REPL you will need to run the container with additional privileges:\n\n```bash\n# If running Docker on Linux:\ndocker run --security-opt seccomp=unconfined -it swift\n\n# If running Docker on macOS:\ndocker run --privileged -it swift\n```\n\nWe also provide a \"slim\" image. Slim images are images designed just for running an already built Swift program. Consequently, they do not contain the Swift compiler.\n\nThe normal and slim images can be combined via a multi-stage Dockerfile to produce a lighter-weight image ready for deployment. For example:\n\n```dockerfile\nFROM swift:latest as builder\nWORKDIR /root\nCOPY . .\nRUN swift build -c release\n\nFROM swift:slim\nWORKDIR /root\nCOPY --from=builder /root .\nCMD [\".build/release/docker-test\"]\n```\n\n## Contributing \nWelcome to the Swift community!\n\nContributions to swift-docker are welcomed and encouraged! Please see the [Contributing to Swift guide](swift.org/contributing) and check out the [structure of the community](https://www.swift.org/community/#community-structure).\n\nTo be a truly great community, Swift needs to welcome developers from all walks of life, with different backgrounds, and with a wide range of experience. A diverse and friendly community will have more great ideas, more unique perspectives, and produce more great code. We will work diligently to make the Swift community welcoming to everyone.\n\nTo give clarity of what is expected of our members, Swift has adopted the code of conduct defined by the Contributor Covenant. This document is used across many open source communities, and we think it articulates our values well. For more, see the [Code of Conduct](https://www.swift.org/code-of-conduct/).\n\n## License\n\nswift-docker is licensed under the [Apache License, Version 2.0](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftlang%2Fswift-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftlang%2Fswift-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftlang%2Fswift-docker/lists"}