An open API service indexing awesome lists of open source software.

https://github.com/redhat-cop/gows

A tiny web server written in Go
https://github.com/redhat-cop/gows

container-cop

Last synced: 12 months ago
JSON representation

A tiny web server written in Go

Awesome Lists containing this project

README

          

# gows - A Tiny Web Server

The gows project is a web server with a very small footprint that's made for simply serving static content.

## Build

First we're going to build the go binary.

```
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o gows .
```

Then we build the image

```
docker build -t etsauer/gows:latest .
```

## Run

```
docker run -p 8080:8080 -v /path/to/static/content:/opt/_site -e GOWS_DIR=/opt/_site etsauer/gows:latest
```