https://github.com/twin/gatic
Very small static web server in Go
https://github.com/twin/gatic
container container-image docker go golang static-server
Last synced: 12 months ago
JSON representation
Very small static web server in Go
- Host: GitHub
- URL: https://github.com/twin/gatic
- Owner: TwiN
- License: apache-2.0
- Created: 2019-10-28T00:57:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-08T03:31:13.000Z (over 4 years ago)
- Last Synced: 2025-01-12T23:12:01.515Z (about 1 year ago)
- Topics: container, container-image, docker, go, golang, static-server
- Language: HTML
- Size: 14.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gatic
[](https://cloud.docker.com/repository/docker/twinproduction/gatic)
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:
```dockerfile
FROM twinproduction/gatic
ADD static ./static
```
See the [example](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
```