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
- Host: GitHub
- URL: https://github.com/redhat-cop/gows
- Owner: redhat-cop
- Created: 2017-05-04T19:08:37.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-08T14:37:46.000Z (about 9 years ago)
- Last Synced: 2025-03-03T01:41:33.648Z (over 1 year ago)
- Topics: container-cop
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 11
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```