This commit is contained in:
parent
1e26732044
commit
e01a930f46
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue