-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add buildpacksio/pack:<version>-base images to delivery
Signed-off-by: Natalie Arellano <[email protected]>
- Loading branch information
1 parent
a2b862c
commit 675dca1
Showing
3 changed files
with
16 additions
and
23 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 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,12 +1,12 @@ | ||
ARG base_image=gcr.io/distroless/static | ||
|
||
FROM golang:1.20 as builder | ||
ARG pack_version | ||
ENV PACK_VERSION=$pack_version | ||
WORKDIR /app | ||
COPY . . | ||
RUN make build | ||
|
||
FROM scratch | ||
FROM ${base_image} | ||
COPY --from=builder /app/out/pack /usr/local/bin/pack | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder /tmp /tmp | ||
ENTRYPOINT [ "/usr/local/bin/pack" ] |