skip to Main Content

do not understand EXPOSE command Dockerfile

i really do not understand the following command in Dockerfile EXPOSE 8080 I built a java application and dockerized it via this Dockerfile FROM openjdk:10-jre-slim WORKDIR /app COPY ./target/display-console-1.0-SNAPSHOT.jar /app CMD ["java", "-jar", "display-console-1.0-SNAPSHOT.jar"] My java application got a controller…

VIEW QUESTION
Back To Top
Search