Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description


Docker trusted build test.
Contains from (overridable).

Run container

Basic :

$ sudo docker run -t -i -p 8000:8000 fspot/flask-sockets

Override the code inside the container and use a volume from the host (persistant) :

$ sudo docker run -t -i -p 8000:8000 -v /tmp/code:/code/work fspot/flask-sockets

Now you're in the container (bash prompt).

Launch project

Inside the container :

$ gunicorn -k flask_sockets.worker -b hello:app  # needs with app (wsgi compliant)

As we've bound port 8000 of the host to 8000 of the container, then :

$ curl localhost:8000

should work in both.

Also, open your browser and go to Put ws://localhost:8000/echo, then connect : websocket works.

Docker Pull Command
Source Repository