Go app

Run Go services from files or a GitHub repo.

  • app
  • language

Guides: Run your own app, Run a GitHub repo

Run it

briq run go

Fields

NameTypeOptionsDefault
imagestring—"golang:1.25-alpine"
filesrecord{ "path": "content" | { base64 } }—
checkoutobject{ repo, ref?, path?, token? }—
stepsobject[]——
cmdstring | string[]——
portsnumber[]—[8080]
envrecord{ key: string | { secret, value?, literal?, scope?, hosts?, locations? } }{}
sizeenumnano, small, medium, large"small"
volumeobject{ gb? }—
egressobject{ hosts }—

Outputs

Returned by briq_run once the stack is healthy. Hosts resolve inside your team network; secrets are generated per run.

APP_URL
http://app.<stack>.internal:8080

What it runs

BriqImagePortsSizeVolume
appgolang:1.25-alpine8080small—

When to use it

  • You wrote a Go service and want it built and running next to its database, without a Dockerfile or a registry.

Tips

  • Code in a repo: pass checkout: { repo: "github.com/owner/app" } instead of files. See Run a GitHub repo.
  • Pass the module as files: go.mod, main.go and the rest, with relative paths (they go under /app). go.sum too when there are dependencies.
  • It builds at each start (go build), then runs the binary. The build cache stays on the disk, so a restart rebuilds in seconds; the first start downloads modules and takes longer. If it outlasts briq_run's two minutes, the briq shows creating until the build is done: briq_status tells you when it runs.
  • ListenAndServe(":" + os.Getenv("PORT"), …) listens on IPv6 and IPv4; 8080 by default.
  • Publish it as you run it with expose: "private" (or "public" for anyone): it returns URL.
  • Step by step: Run your own app, with a database and a URL.

On this page

Free to try

Try briq, on us.

Every new account starts with €10 of credits. No card.

Start building

How can we help?

Message to the briq team