0

My Dockerfile

FROM amazoncorretto:19-alpine3.16-jdk
WORKDIR /app
ARG JAR_FILE=target/spring_jwt-1.0.0-SNAPSHOT.jar
COPY ${JAR_FILE} ./app.jar
EXPOSE 8081
ENTRYPOINT ["java","-jar","app.jar"]

How to set name, tag for Docker image?

enter image description here

Brian Clozel
  • 56,583
  • 15
  • 167
  • 176
Vy Do
  • 46,709
  • 59
  • 215
  • 313
  • You can name your Docker images and container instances in the Run configuration. – hooknc Dec 04 '22 at 17:30
  • The `docker build -t` option does this. It looks like you included an image of some sort in your question; how is that PNG file related to your application or the Docker build sequence? – David Maze Dec 04 '22 at 20:27
  • Possible duplicate: https://stackoverflow.com/q/38986057/596285 – BMitch Dec 22 '22 at 16:27

0 Answers0