From docker.io/codenvy/jdk8_maven3_tomcat8
WORKDIR /home/user
RUN git clone https://***:***@gitee.com/***/dati.git
RUN cd dati/
RUN mvn clean package
RUN rm -rf /home/user/tomcat8/webapps/*
RUN cp target/dati.war /home/user/tomcat8/webapps/
CMD ["bin/catalina.sh","run"]
上面是dockerfile
你好,检查下版本构建目录是否正确呢?看错误信息是 /home/user 下没有项目文件,将构建目录改到这个目录再重试下?
dockerfile里面写的有问题