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
- Push your repo to GitHub, GitLab, Bitbucket, or Codeberg.
- 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. - 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: 8080What 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.