Skip to content

Commit

Permalink
feat: optimize docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
jabuxas committed Sep 6, 2024
1 parent 80497fb commit 07ec53a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23
FROM golang:1.23 AS builder

WORKDIR /app

Expand All @@ -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"]

0 comments on commit 07ec53a

Please sign in to comment.