diff --git a/Dockerfile b/Dockerfile index 453f4ef..a89955a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,10 +8,12 @@ RUN CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath -o build/goscan FROM alpine:3.20 -RUN apk --no-cache update && apk --no-cache upgrade && apk add curl +RUN apk --no-cache update && apk --no-cache upgrade && apk add wget curl +RUN wget https://go.dev/dl/go1.23.1.linux-amd64.tar.gz && tar -xf go1.23.1.linux-amd64.tar.gz -C /usr/local && rm -rf go1.23.1.linux-amd64.tar.gz COPY --from=builder /app/build/goscan /goscan COPY ./entrypoint.sh /entrypoint.sh +COPY --from=builder /app . RUN chmod +x /goscan && chmod +x /entrypoint.sh diff --git a/cmd/root.go b/cmd/root.go index 2a936f4..23c2f54 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -199,10 +199,6 @@ var rootCmd = &cobra.Command{ log.Fatalln(err) } - if err := os.WriteFile("output.md", []byte(markdownOutputStr), 0644); err != nil { - log.Fatalln(err) - } - // This will trigger gosec file, err := os.OpenFile("testing.txt", os.O_APPEND|os.O_CREATE|os.O_WRONLY, os.ModePerm) if err != nil {