-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add dockerfile and ZSH command to run and push to dockerhub.io
- Loading branch information
1 parent
4379bf9
commit 22a7818
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
modules/**/* | ||
config/**/* | ||
.git/**/* | ||
README.md | ||
.gitignore | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM golang:1.22.4-alpine3.20 AS builder | ||
RUN apk add --no-cache bash git \ | ||
&& wget -q https://kcl-lang.io/script/install-cli.sh -O - | /bin/bash | ||
WORKDIR /app | ||
COPY . . | ||
RUN go build -o crdtokcl main.go | ||
|
||
FROM alpine:latest | ||
RUN apk add --no-cache bash | ||
WORKDIR /app | ||
COPY --from=builder /app/crdtokcl /bin/crdtokcl | ||
COPY --from=builder /usr/local/bin/kcl /usr/local/bin/kcl | ||
ENTRYPOINT ["/bin/crdtokcl"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters