/swift

Swift 3 on Ubuntu 16.04

Apache License 2.0Apache-2.0

Overview

Swift 3 Release and GM Candidate builds

Docker Hub

The image is available on Docker Hub as smithmicro/swift with the following tags:

  • 3.0.2, 3.0, 3, latest, (Dockerfile) swift-3.0.2-RELEASE
  • 3.0.1 swift-3.0.1-RELEASE
  • 3.0.0 swift-3.0-RELEASE

Usage

This image is used as a base image for a Swift 3 application. An example Dockerfile would be:

FROM smithmicro/swift:latest
ADD helloworld.swift ./
RUN swiftc helloworld.swift
CMD ./helloworld

You can also jump into the Swift REPL like this:

$ docker run -it --privileged smithmicro/swift swift