-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Kalantar <[email protected]>
- Loading branch information
Showing
6 changed files
with
218 additions
and
147 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
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 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,15 +1,26 @@ | ||
# FROM scratch | ||
# ADD iter8 /bin | ||
# ENTRYPOINT ["/bin/iter8"] | ||
FROM debian:buster-slim | ||
FROM golang:1.21.1-bookworm AS build-stage | ||
|
||
WORKDIR /app | ||
COPY . ./ | ||
|
||
RUN go mod download | ||
|
||
RUN mkdir -p bin \ | ||
&& make clean \ | ||
&& make build | ||
|
||
|
||
FROM debian:bookworm-slim | ||
|
||
WORKDIR / | ||
|
||
# Install curl | ||
RUN apt-get update && apt-get install -y curl | ||
|
||
# Install /bin/iter8 | ||
COPY --from=build-stage /app/bin/iter8 /bin/iter8 | ||
|
||
# Set Iter8 version from build args | ||
ARG TAG | ||
ENV TAG=${TAG:-v0.17.0} | ||
|
||
ADD iter8 /bin | ||
|
||
WORKDIR / |
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
Oops, something went wrong.