improved dockerfile (with api)