Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP)Move echo of build_id to allow more caching #50

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions templates/build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ FROM ${base_image}

USER root

ARG build_id=0
RUN echo ${build_id}

RUN microdnf -y module enable nodejs:{{.NODEJS_VERSION}}
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y {{.PACKAGES}} && microdnf clean all

RUN echo uid:gid "{{.CNB_USER_ID}}:{{.CNB_GROUP_ID}}"
USER {{.CNB_USER_ID}}:{{.CNB_GROUP_ID}}

RUN echo "CNB_STACK_ID: {{.CNB_STACK_ID}}"
RUN echo "CNB_STACK_ID: {{.CNB_STACK_ID}}"

ARG build_id=0
RUN echo ${build_id}
Loading