- python3
- packages see requirements.txt
pip install requirements.txt
- start with
python3 template.py
- add whichever route you want, and do whatever you want regarding to algorithms, requests, data processing, data mining, machine learning, machine reasoning, etc, in your route
- return a json as seen in the code
--> every functionality created and published like this can be consumed online by inseri
Always add your dependencies to requirements.txt, otherwise they the docker built will fail
docker build -t microservice-template .
- Start it locally to test it:
docker run -p 8080:8080 microservice-template
docker login
docker tag <DockerImageId> user/imageName:tag
docker push user/imagename:tag