From 8119d4a9367f317c73e53d3d280b8625270ee3cb Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Fri, 6 Oct 2023 10:42:44 -0600 Subject: [PATCH] docker: update dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b8d747b..f9b9b30 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,9 +13,9 @@ COPY . . # Build the Go application RUN go generate ./... -RUN go build -o bin/ ./cmd/siapfsd +RUN go build -o bin/ -tags='netgo timetzdata' -trimpath -a -ldflags '-s -w -linkmode external -extldflags "-static"' ./cmd/siapfsd -FROM debian:stable-slim +FROM scratch COPY --from=builder /app/bin/* /usr/bin/