Skip to content

Commit

Permalink
try using absolute paths for this?
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Oct 6, 2024
1 parent 40ab19d commit 25b880e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base-standalone/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN --mount=type=cache,target=/var/cache \

RUN \
--mount=type=cache,target=/cache \
--mount=type=bind,rw=true,src=.,dst=/buildcontext,bind-propagation=shared \
--mount=type=bind,rw=true,src=/var/tmp,dst=/buildcontext,bind-propagation=shared \
rpm-ostree compose image \
--cachedir=/cache \
--format=ociarchive \
Expand All @@ -26,5 +26,5 @@ RUN \
FROM oci-archive:./out.ociarchive
# Need to reference builder here to force ordering. But since we have to run
# something anyway, we might as well cleanup after ourselves.
RUN --mount=type=bind,from=builder,src=.,target=/var/tmp --mount=type=bind,rw=true,src=.,dst=/buildcontext,bind-propagation=shared rm /buildcontext/out.ociarchive
RUN --mount=type=bind,from=builder,src=/var/tmp,target=/var/tmp --mount=type=bind,rw=true,src=/var/tmp,dst=/buildcontext,bind-propagation=shared rm /buildcontext/out.ociarchive

0 comments on commit 25b880e

Please sign in to comment.