Skip to content

Commit

Permalink
Add dockerfile (#70)
Browse files Browse the repository at this point in the history
This commit adds a Dockerfile and .dockerignore to for containerizing the kor CLI tool.
  • Loading branch information
Yuni-sa authored Sep 12, 2023
1 parent e3d760f commit a4f6f40
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.github
*.yml
kor
images
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM golang:1.20.2-alpine AS builder

WORKDIR /build
COPY . .
ENV CGO_ENABLED 0
RUN go build .

FROM alpine:3.18

COPY --from=builder /build/kor /kor
ENTRYPOINT [ "/kor" ]
CMD ["--help"]

0 comments on commit a4f6f40

Please sign in to comment.