Skip to content

Commit

Permalink
Simple demo using a parent Docker context. (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
n-g authored Oct 29, 2024
1 parent 0b54ff4 commit 740fb29
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/testdata/binaries/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ubuntu:22.04@sha256:2b7412e6465c3c7fc5bb21d3e6f1917c167358449fecac8176c6e496e5c1f05f

WORKDIR /foo

COPY README.md .

RUN ls -al
9 changes: 9 additions & 0 deletions internal/testdata/binaries/docker/binary.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
binary: {
name: "with-parent-context"

build_plan: {
layer_build_plan: [
{docker_build: {context_dir: "../..", dockerfile: "binaries/docker/Dockerfile"}},
]
}
}

0 comments on commit 740fb29

Please sign in to comment.