Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Commit

Permalink
Add CNB_TARGET environment variables (heroku#251)
Browse files Browse the repository at this point in the history
* Add CNB_TARGET environment variables

* Use buildx provided os/arch for CNB_TARGET
  • Loading branch information
joshwlewis authored Mar 1, 2024
1 parent d1ab0cb commit ef0452b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion heroku-20-cnb-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ RUN mkdir /app && \

ENV CNB_USER_ID=1000
ENV CNB_GROUP_ID=1000

ENV CNB_STACK_ID "heroku-20"
ENV CNB_TARGET_OS="linux"
ENV CNB_TARGET_ARCH="amd64"

LABEL io.buildpacks.stack.id="heroku-20"

USER heroku
4 changes: 3 additions & 1 deletion heroku-22-cnb-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ RUN mkdir /app && \

ENV CNB_USER_ID=1000
ENV CNB_GROUP_ID=1000

ENV CNB_STACK_ID "heroku-22"
ENV CNB_TARGET_OS="linux"
ENV CNB_TARGET_ARCH="amd64"

LABEL io.buildpacks.stack.id="heroku-22"

USER heroku
2 changes: 2 additions & 0 deletions heroku-24-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ USER 1002
ENV CNB_USER_ID=1002
ENV CNB_GROUP_ID=1000
ENV CNB_STACK_ID "heroku-24"
ENV CNB_TARGET_OS=$TARGETOS
ENV CNB_TARGET_ARCH=$TARGETARCH

0 comments on commit ef0452b

Please sign in to comment.