Sign inSign up

twinproduction/gatic

By twinproduction

Updated over 5 years ago

Very small static web server in Go

Image
0

1.0K

twinproduction/gatic repository overview

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

Tag summary

Content type

Image

Digest

Size

3.3 MB

Last updated

over 5 years ago

docker pull twinproduction/gatic