workdir integration test

This commit is contained in:
Priya Wadhwa
2018-03-26 13:04:40 -07:00
parent 0787a93372
commit a5a84ed552
2 changed files with 41 additions and 38 deletions
@@ -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 /