Upgrade Go version and add Air to Dockerfile

Add Air live‑reload tool and update the base image to golang:1.25.
Configure docker‑compose with code mounts and a cached Go module
volume, and switch the container command to run Air.
This commit is contained in:
2026-01-15 01:41:59 -05:00
parent 3edc24b940
commit 693b3a94b1
2 changed files with 14 additions and 11 deletions

View File

@@ -3,9 +3,14 @@ services:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
- GO111MODULE=on
command: ["./tmp/main"]
volumes:
- .:/app # Mount your code
- /app/tmp # Exclude tmp (built binaries)
- go-mod-cache:/go/pkg/mod # Cache Go modules
volumes:
go-mod-cache: