Split chmod and execution of provisioning script

Attempt to correct an issue in the hub.docker.com build:

/bin/sh: 1: /home/correl/dotfiles/provision.sh: Text file busy

 Removing intermediate container b72e6ce14652
 The command '/bin/sh -c sudo chown -R correl:correl . && /home/correl/dotfiles/provision.sh -D' returned a non-zero code: 2
This commit is contained in:
Correl Roush 2018-04-11 09:18:10 -04:00
parent 19ad3e9899
commit de2ec05c6d
1 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,6 @@ RUN localedef -i en_US -f UTF-8 en_US.UTF-8 \
USER correl
WORKDIR /home/correl
COPY . /home/correl/dotfiles
RUN sudo chown -R correl:correl . \
&& /home/correl/dotfiles/provision.sh -D
RUN sudo chown -R correl:correl .
RUN /home/correl/dotfiles/provision.sh -D
CMD ["/usr/bin/zsh"]