In this project I used Docker with a simple Go project.
- Go
- Docker
- Install Go - https://go.dev/doc/install
- Install Docker - https://docs.docker.com/get-docker
- Download the repository onto your computer and go to project file
git clone https://github.com/sayedh/go-docker-test
cd go-docker-test
- Run Docker build command
docker build -t docker-test .
- Run the project
docker run -p 8080:8081 -it docker-test
- Go to your browser and type http://localhost:8080/
- Next go to http://localhost:8080/hi