This simple Dockerfile is actually enough to run our Swift server on any host with the Docker Engine on them.

Source: Easy Server Side Swift with Docker — Medium

 

Also see: https://github.com/jayfk/server-side-swift-starter