Skip to content

DrRiyadh/go-web-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

go-web-server

Instructions

Write a Dockerfile that compiles and then runs the web server in this repository.

Write it as if the container will be used in production.


Notes

This Go webserver compiles with Go version 1.12+.

It exposes a web server on port 8080 and logs to STDOUT. The port is configurable by setting the PORT environment variable.

It only has one endpoint that returns status code 200: /health. All other requests will return 404: "404 page not found".

About

Basic Golang web server for testing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 97.2%
  • Dockerfile 2.8%