Skip to content

Commit

Permalink
feat: add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Trugamr committed Jan 19, 2025
1 parent 388f4a3 commit 9c52fe9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:1.22.3-alpine3.20 AS builder

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY . .
RUN go build -o wol

#------------------#

FROM gcr.io/distroless/static-debian12 AS release

COPY --from=builder /app/wol /usr/local/bin/wol

USER nonroot:nonroot

ENTRYPOINT ["/usr/local/bin/wol"]

0 comments on commit 9c52fe9

Please sign in to comment.