It's possible to develop with Swift on Debian GNU/Linux with Docker?

According to the following article Swift 4.2.1 for Ubuntu 18.04 works on Debian 9. Perhaps newer Swift versions work as well.