标签:docke nbsp from file build hot pre snapshot span
[root@lab2 docker-file]# cd server2/ [root@lab2 server2]# ls ddbes-server2-0.0.1-SNAPSHOT.jar Dockerfile [root@lab2 server2]# cat Dockerfile FROM java:8-jre-alpine COPY ddbes-server2-0.0.1-SNAPSHOT.jar /opt/docker-file/server2/ddbes-server2-0.0.1-SNAPSHOT.jar WORKDIR /opt/docker-file/server2 EXPOSE 8882 CMD ["java", "-jar", "ddbes-server2-0.0.1-SNAPSHOT.jar"] [root@lab2 server2]# docker build -t server2 /opt/docker-file/server2/
标签:docke nbsp from file build hot pre snapshot span
原文地址:https://www.cnblogs.com/effortsing/p/10480728.html