Created
April 18, 2021 19:57
-
-
Save vniche/876f81086214fdc29c902ead359d4f7a to your computer and use it in GitHub Desktop.
Sample application for Raspiberry Pi container cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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