docker-flask-api
This is a lightweight boilerplate for a flask api built using docker.
Setup
Instructions tested using a linux environment
-
Install Docker
a. Follow the Docker Tutorial
-
Clone this repository
a.
git clone git@github.com:mac-s-g/docker-flask-api.git
-
Change to
docker-flask-api
directorya.
cd docker-flask-api
-
Build the docker image (Note: you may need to )
a.
docker build -t docker-flask-api
. -
Run the dev server on localhost
a.
./docker/dev-server.sh
-
Ping your API (Note: default port exposed is 5000)
a. navigate your web browser to
localhost:5000