diff --git a/Dockerfile b/Dockerfile index 5bfc011..10aa210 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23 +FROM golang:1.23 AS builder WORKDIR /app @@ -11,4 +11,8 @@ COPY *.go ./ RUN CGO_ENABLED=0 GOOS=linux go build -o /abyss +FROM scratch + +COPY --from=builder /abyss /abyss + CMD ["/abyss"]