Skip to content

Commit

Permalink
Context
Browse files Browse the repository at this point in the history
Create context buids
  • Loading branch information
bnhassin authored Dec 10, 2019
1 parent a926832 commit d1f35f5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/dir/files/buildings/context
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# create a directory to work in
mkdir example
cd example

# create an example file
touch somefile.txt

docker build -t myimage:latest -<<EOF
FROM busybox
COPY somefile.txt .
RUN cat /somefile.txt
EOF

# observe that the build fails
...
Step 2/3 : COPY somefile.txt .
COPY failed: stat /var/lib/docker/tmp/docker-builder249218248/somefile.txt: no such file or directory

1 comment on commit d1f35f5

@bnhassin
Copy link
Owner Author

@bnhassin bnhassin commented on d1f35f5 Dec 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tree: https://github.com/bnhassin/git/tree/v1.0

Commit: d1f35f5

Add source code (tar.gz):
git-1.0.tar.gz

Please sign in to comment.