diff --git a/Dockerfile b/Dockerfile index dc283dd..64270e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,10 @@ RUN go mod download COPY . . -# Build with CGO enabled for sqlite -RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o fitness-app ./main.go +# Build native for the host architecture (ARM64 on Hetzner) +RUN CGO_ENABLED=1 go build -o fitness-app ./main.go + + # Runtime stage FROM debian:bookworm-slim