Fix pathing

pull/145291/head
Chuck 2022-03-16 22:40:07 +00:00
parent c90ea26e25
commit 242d81d9c7
1 changed files with 4 additions and 3 deletions

View File

@ -8,9 +8,10 @@ ARG CACHE_FOLDER="/home/${USERNAME}/.devcontainer-cache"
COPY --chown=${USERNAME}:${USERNAME} . /repo-source-tmp/
RUN mkdir -p ${CACHE_FOLDER} && chown ${USERNAME} ${CACHE_FOLDER} /repo-source-tmp \
&& su ${USERNAME} -c "\
.devcontainer/cache/before-cache.sh /repo-source-tmp ${CACHE_FOLDER} \
&& .devcontainer/prepare.sh /repo-source-tmp ${CACHE_FOLDER} \
&& .devcontainer/cache/cache-diff.sh /repo-source-tmp ${CACHE_FOLDER}"
cd /repo-source-tmp \
&& .devcontainer/cache/before-cache.sh . ${CACHE_FOLDER} \
&& .devcontainer/prepare.sh . ${CACHE_FOLDER} \
&& .devcontainer/cache/cache-diff.sh . ${CACHE_FOLDER}"
# This second stage starts fresh and just copies in cache.tar from the previous stage. The related
# devcontainer.json file is then setup to have postCreateCommand fire restore-diff.sh to expand it.