first try at auth before swtiching

This commit is contained in:
2025-08-27 18:01:03 -07:00
parent f4b9f350ae
commit dc5bfcb281
8 changed files with 728 additions and 106 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
# Build stage
FROM golang:1.19 as build
WORKDIR /app
# Copy go.mod and go.sum first for efficient dependency caching
COPY go.mod go.sum ./
RUN go mod download
# Copy source code
COPY . .
# Build binary
RUN CGO_ENABLED=0 GOOS=linux go build -o garmin-connect ./cmd/main.go
# Runtime stage
FROM alpine:3.14
# Install CA certificates for SSL
RUN apk --no-cache add ca-certificates
WORKDIR /app
# Copy binary from build stage
COPY --from=build /app/garmin-connect .
# Set entrypoint
ENTRYPOINT ["./garmin-connect"]