-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1951 from buildpacks/pack-image
Add buildpacksio/pack:<version>-base images to delivery
- Loading branch information
Showing
3 changed files
with
20 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" ] |