A simple Docker Vapor example.
$ docker-compose build
$ docker-compose run --service-ports app
$ swift build
$ ./.build/x86_64-unknown-linux/debug/Run -b 0.0.0.0
Running default command: ./.build/x86_64-unknown-linux/debug/Run serve
Server starting on http://0.0.0.0:8080
Note: You must bind to
0.0.0.0so you can access from outside the container.
http://localhost:8080/hello:$ curl http://localhost:8080/hello
Hello, world.
MIT
Content type
Image
Digest
Size
728.5 MB
Last updated
almost 8 years ago
docker pull alfg/vapor