Sign inSign up

alfg/vapor

By alfg

Updated almost 8 years ago

Image
0

278

alfg/vapor repository overview

Docker Vapor

A simple Docker Vapor example.

Usage

  • Build Docker image:
$ docker-compose build
  • Run bash in container:
$ docker-compose run --service-ports app
  • Build and run:
$ 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.0 so you can access from outside the container.

  • Load http://localhost:8080/hello:
$ curl http://localhost:8080/hello
Hello, world.

Resources

License

MIT

Tag summary

Content type

Image

Digest

Size

728.5 MB

Last updated

almost 8 years ago

docker pull alfg/vapor