-
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.
chore: support for containerized-krm, and introduce Dockerfile for dev
Signed-off-by: Ardika Bagus <[email protected]>
- Loading branch information
Showing
4 changed files
with
24 additions
and
7 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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
FROM alpine:3.14 | ||
FROM alpine:3.18 | ||
|
||
COPY helmize /usr/bin/helmize | ||
RUN mkdir -p /.config /.cache && \ | ||
chown nobody:nobody /.config /.cache | ||
|
||
CMD ["/usr/bin/helmize"] |
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,15 @@ | ||
FROM golang:1.21-alpine3.18 AS builder | ||
WORKDIR /app | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
|
||
COPY . . | ||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o bin/helmize | ||
|
||
FROM alpine:3.18 | ||
COPY --from=builder /app/bin/helmize /usr/bin/helmize | ||
RUN mkdir -p /.config /.cache && \ | ||
chown nobody:nobody /.config /.cache | ||
|
||
USER nobody | ||
CMD ["/usr/bin/helmize"] |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
FROM ghcr.io/ardikabs/etc/shell | ||
|
||
COPY helmize /usr/bin/helmize | ||
ENTRYPOINT ["/usr/bin/helmize"] | ||
RUN mkdir -p /.config /.cache && \ | ||
chown nobody:nobody /.config /.cache | ||
|
||
CMD ["/usr/bin/helmize"] |
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