Skip to content

TwiN/gatic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatic

Docker pulls

Very small static web server in Go.

Usage

All you have to do is create a Dockerfile that uses this image, and copy the static files you want to expose in the static folder of the Docker image:

FROM twinproduction/gatic
ADD static ./static

See the example folder for an example.

Docker

Building the Docker image is done as following:

docker build . -t gatic

You can then run the container with the following command:

docker run -p 8080:8080 --name gatic gatic

Running the tests

go test ./... -mod vendor -cover