You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version: '3.8'services:
my-go-app:
# 1. "Get Golang & Git"# We use the official image. It comes with Go and Git pre-installed.image: golang:1.23# Set where we work inside the containerworking_dir: /app# 2. "Git clone, Tidy, Run"# We override the default command to run your shell sequence.# We use 'sh -c' to chain multiple commands together.command: > sh -c "git clone https://github.com/YOUR_USERNAME/YOUR_REPO.git . && go mod tidy && go run ."# Optional: Map port if your Go app is a web serverports:
- "8080:8080"