Skip to content

Instantly share code, notes, and snippets.

@vniche
Created April 18, 2021 19:57
Show Gist options
  • Save vniche/876f81086214fdc29c902ead359d4f7a to your computer and use it in GitHub Desktop.
Save vniche/876f81086214fdc29c902ead359d4f7a to your computer and use it in GitHub Desktop.
Sample application for Raspiberry Pi container cluster
package main
import "github.com/gofiber/fiber/v2"
func main() {
app := fiber.New()
app.Get("/", func(c *fiber.Ctx) error {
return c.SendString("Hello, World 👋!")
})
app.Listen(":3000")
}
build-with-docker:
docker run -it --rm \
-v $(shell pwd):/go/src/github.com/vniche/armv6-sample-app \
-w /go/src/github.com/vniche/armv6-sample-app \
--platform linux/arm/v6 \
golang:1.15-buster go build -o sample-app .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment