我正在尝试运行具有以下内容的Dockerfile:
FROM java:8
WORKDIR target/
ADD demo-0.0.1-SNAPSHOT.jar demo-0.0.1-SNAPSHOT.jar
EXPOSE 8090
CMD java - jar demo-0.0.1-SNAPSHOT.jar
我收到以下错误:
Sending build context to Docker daemon 20.73 MB
Step 1 : FROM java:8
---> d23bdf5b1b1b
Step 2 : WORKDIR target/
---> Using cache
---> 709ff4c668c3
Step 3 : ADD demo-0.0.1-SNAPSHOT.jar demo-0.0.1-SNAPSHOT.jar
lstat demo-0.0.1-SNAPSHOT.jar: no such file or directory
您能帮我吗?