Skip to content
Snippets Groups Projects
Commit 658b74a1 authored by nahyun's avatar nahyun
Browse files

Add Dockerfile

parent b5279ec1
No related branches found
No related tags found
No related merge requests found
FROM openjdk:17
ARG JAR_FILE=target/myspringweb*.jar
COPY ${JAR_FILE} app.jar
EXPOSE 8888
ENTRYPOINT ["java","-jar","/app.jar"]
# How To build
# mvn package
# docker build -t test .
# How to run
# docker run -d -p 8888:8888 test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment