-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-worked and tested quite some samples
- Loading branch information
Showing
90 changed files
with
262 additions
and
2,030 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,8 +1,10 @@ | ||
FROM icr.io/codeengine/golang:alpine | ||
COPY app.go / | ||
RUN go build -o /app /app.go | ||
FROM quay.io/projectquay/golang:1.22 AS build-env | ||
WORKDIR /go/src/app | ||
COPY app.go . | ||
|
||
RUN CGO_ENABLED=0 go build -o /go/bin/app app.go | ||
|
||
# Copy the exe into a smaller base image | ||
FROM icr.io/codeengine/alpine | ||
COPY --from=0 /app /app | ||
CMD /app | ||
FROM gcr.io/distroless/static-debian12 | ||
COPY --from=build-env /go/bin/app / | ||
CMD ["/app"] |
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,8 +1,10 @@ | ||
FROM icr.io/codeengine/golang:alpine | ||
COPY job.go / | ||
RUN go build -o /job /job.go | ||
FROM quay.io/projectquay/golang:1.22 AS build-env | ||
WORKDIR /go/src/app | ||
COPY job.go . | ||
|
||
RUN CGO_ENABLED=0 go build -o /go/bin/job job.go | ||
|
||
# Copy the exe into a smaller base image | ||
FROM icr.io/codeengine/alpine | ||
COPY --from=0 /job /job | ||
CMD /job | ||
FROM gcr.io/distroless/static-debian12 | ||
COPY --from=build-env /go/bin/job / | ||
CMD ["/job"] |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.