Deploy Go on Deplexo

Deplexo detects Go modules from go.mod and runs a multi-stage build: a Go builder image compiles a static binary, which is then copied into a minimal Alpine runtime image.

How it works

  1. Push your repo to GitHub, GitLab, Bitbucket, or Codeberg.
  2. Deplexo generates a multi-stage Dockerfile with Go module caching. The builder stage compiles your binary with CGO_ENABLED=0; the runtime stage is a minimal Alpine image containing only the binary.
  3. Your app starts on its subdomain. Build and runtime logs stream to the dashboard.

Configuration

Add deplexo.yaml to your repo root. Set build to the path of your main package.

framework: go
build: CGO_ENABLED=0 go build -o /out/server ./cmd/api
start: /server
port: 8080

What you get

  • Automatic subdomain (your-app.deplexo.com) provisioned on first deploy.
  • Build logs streamed live from the worker.
  • Runtime logs accessible from the Logs tab.
  • Environment variables managed in the dashboard, encrypted at rest, injected at runtime.
  • Git webhooks trigger automatic redeploys on push.

Deploy now

Cookie choices

We use essential cookies to keep the site working. Cookieless page counts run automatically. Performance measurements are optional and only run with your consent.

Cookie policy