From 9086938394e9ccfe7de366cc3b80a04b48c5f70a Mon Sep 17 00:00:00 2001 From: Sam Ruby Date: Mon, 17 Jun 2024 17:08:26 -0400 Subject: [PATCH] Suggest adding more copy lines. Inspiration: https://community.fly.io/t/panic-open-usr-src-app-templates-add-match-html-no-such-file-or-directory/20338/ --- scanner/templates/go/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scanner/templates/go/Dockerfile b/scanner/templates/go/Dockerfile index fa878e19b1..c7245f80c1 100644 --- a/scanner/templates/go/Dockerfile +++ b/scanner/templates/go/Dockerfile @@ -11,4 +11,8 @@ RUN go build -v -o /run-app . FROM debian:bookworm COPY --from=builder /run-app /usr/local/bin/ + +# Add other copy statements as needed, for example: +# COPY --from=builder /usr/src/app/templates /usr/src/app/templates + CMD ["run-app"]