我有一个运行Jetty Maven插件的Maven Web服务项目。
我的Dockerfile是:
FROM openjdk:8
# maven
From maven:3.3.9
ENV MAVEN_VERSION 3.3.9
COPY pom.xml /home/pusher-docker/pusher-test/pom.xml
COPY src /home/pusher-docker/pusher-test/src
WORKDIR /home/pusher-docker/pusher-test
RUN mvn package
CMD ["java","-cp","target/pusher-test.jar","mvn jetty:run"]
我正在使用Docker容器启动
sudo docker run docker-pusher-test
但是出现以下错误:
no main manifest attribute, in pusher-test.war
如何成功启动容器?