deploy golang echo rest api to aws elastic beanstalk using docker
you can access a sample deployment on aws beanstalk on below link
http://ebechodocker-env.ap-southeast-1.elasticbeanstalk.com
- Build docker image
$ docker build -t eb-echo-docker .
- Run docker image on local machine on port 8080
$ docker run -it --rm -p 8080:3000 eb-echo-docker
- Check the server
$ curl http://192.168.99.100:8080