diff --git a/Dockerfile b/Dockerfile index 4d18d15..3770fe2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,7 @@ COPY internal /app/internal/ RUN CGO_ENABLED=1 GOOS=linux go build -o /CatsOfMastodonGo ./cmd/CatsOfMastodonBotGo/main.go # Deploy the application binary into a lean image +# TODO: Move to alpine FROM gcr.io/distroless/base-debian12 AS build-release-stage WORKDIR / diff --git a/internal/auth/oauth2.go b/internal/auth/oauth2.go index 64c21f9..5ff2555 100644 --- a/internal/auth/oauth2.go +++ b/internal/auth/oauth2.go @@ -47,7 +47,7 @@ func (g *GiteaOAuth2Handler) GetGiteaUserEmailByCode(code string) (string, error } userInfoUrl := g.cfg.GiteaOauthInstance + "/login/oauth/userinfo" - g.logger.Info(userInfoUrl) + req, err := http.NewRequest("POST", userInfoUrl, nil) if err != nil { return "", err