diff --git a/beszel/dockerfile_Agent b/beszel/dockerfile_Agent index 362337d..6c7511b 100644 --- a/beszel/dockerfile_Agent +++ b/beszel/dockerfile_Agent @@ -12,9 +12,15 @@ COPY internal ./internal ARG TARGETOS TARGETARCH RUN CGO_ENABLED=0 GOGC=75 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-w -s" -o /agent ./cmd/agent +RUN rm -rf /tmp/* + # ? ------------------------- FROM scratch COPY --from=builder /agent /agent -ENTRYPOINT ["/agent"] \ No newline at end of file +# this is so we don't need to create the +# /tmp directory in the scratch container +COPY --from=builder /tmp /tmp + +ENTRYPOINT ["/agent"]