Skip to content

Commit

Permalink
fix Dockerfile: chown /home/user before operates
Browse files Browse the repository at this point in the history
Signed-off-by: hongwei yi <hongweiyi@hotmail.com>
  • Loading branch information
hongweiyi committed Feb 16, 2016
1 parent 28e1128 commit 32ed029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ EXPOSE 8080

ADD /assembly/assembly-main/target/eclipse-che-*/eclipse-che-* /home/user/che

CMD sudo rm -rf /home/user/che/lib-copy/* && \
CMD sudo chown -R user:user /home/user && \
rm -rf /home/user/che/lib-copy/* && \
mkdir -p /home/user/che/lib-copy/ && \
sudo chown -R user:user /home/user && \
cp -rf /home/user/che/lib/* /home/user/che/lib-copy && \
/home/user/che/bin/che.sh run

0 comments on commit 32ed029

Please sign in to comment.