dockerfile

 

 

FROM xx.xx.xx.xx:5000/library/submit:v2
COPY /usr/local/java /usr/local/java
COPY /data/request.json /data
COPY /data/test.pgm /data
COPY /data/test.yaml /data
COPY /home/bim/luo/eclipse/output2/Robot_Project3_4.jar /xxx


CMD ["/bin/sh", "-c", "java -jar xxxx.jar"]








然后再Dockefile 目录下执行

docker build -t luozhubang:v1  .
docker tag luozhubang:v1  xx.xx.xx.xx:5000/library/submit:v3
docker login xx.xx.xx.xx:5000  -u  <仓库账号> -p <仓库密码>
docker push   xx.xx.xx.xx:5000/library/submit:v3

 

#########################

posted @ 2023-08-04 11:42  西北逍遥  阅读(10)  评论(0编辑  收藏  举报