Aggiorna README.md
Some checks are pending
CI to Docker Hub / build (push) Waiting to run

This commit is contained in:
Fabio 2025-04-15 20:46:03 +08:00
parent 72ed8fa4a9
commit 2dae4e04ca

View file

@ -1,6 +1,24 @@
# goStatic [![Docker Pulls](https://img.shields.io/docker/pulls/pierrezemb/gostatic.svg?style=plastic)](https://hub.docker.com/r/pierrezemb/gostatic/) [![Docker Build](https://img.shields.io/docker/build/pierrezemb/gostatic.svg?style=plastic)](https://hub.docker.com/r/pierrezemb/gostatic/) [![Build Status](https://travis-ci.org/PierreZ/goStatic.svg?branch=master)](https://travis-ci.org/PierreZ/goStatic) [![GoDoc](https://godoc.org/github.com/PierreZ/goStatic?status.svg)](https://godoc.org/github.com/PierreZ/goStatic)
A really small, multi-arch, static web server for Docker
# La mia applicazione
with docker
sudo docker run -d -p 8120:8043 -v /home/nvme/dockerdata/myweb:/srv/http --name myweb pierrezemb/gostatic
with docker compose or portainer
services:
gostatic:
ports:
- 8120:8043
volumes:
- /home/nvme/dockerdata/myweb:/srv/http
container_name: myweb
image: pierrezemb/gostatic
## The goal
My goal is to create to smallest docker container for my web static files. The advantage of Go is that you can generate a fully static binary, so that you don't need anything else.