Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 698 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 698 Bytes

GO app

Sample go web server.

The focus here is on containerizing an application and pushing the resulting image to docker hub using GitHub Actions.

The content of this repo is derived from the following guides and repos:

The Dockerfile is using a multistage build.

Build the image:

docker build --tag gapp .

Run it:

docker run -d -p 8080:8080 --tty gapp

Test the access using curl:

curl -v http://localhost:8080/

Test the status endpoint using curl:

curl -v http://localhost:8080/ping