Skip to content

fred-lev/gapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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