mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-18 17:42:49 +02:00
workdir integration test
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
FROM gcr.io/google-appengine/debian9:latest
|
||||
COPY context/foo foo
|
||||
WORKDIR /test
|
||||
WORKDIR workdir
|
||||
COPY context/foo .
|
||||
RUN cp foo newfoo
|
||||
# Test that this will be appended on to the previous command, to create /test/workdir
|
||||
WORKDIR workdir
|
||||
COPY context/foo ./currentfoo
|
||||
# Test that the RUN command will happen in the correct directory
|
||||
RUN cp currentfoo newfoo
|
||||
WORKDIR /new/dir
|
||||
ENV dir /another/new/dir
|
||||
WORKDIR $dir/newdir
|
||||
WORKDIR $dir/$doesntexist
|
||||
WORKDIR /
|
||||
|
||||
Reference in New Issue
Block a user