Skip to content

Commit

Permalink
feat: docker build and push script 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
kimdozzi committed May 14, 2024
1 parent 7497319 commit b64a8bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Start with a base image containing Java runtime.
FROM openjdk:17
FROM openjdk:17-jdk

# The application's jar file.
ARG JAR_FILE= build/libs
ARG JAR_FILE=build/libs/gitget-0.0.1-SNAPSHOT.jar

# Add the application's jar to the container.
ADD ${JAR_FILE}/gitget-0.0.1-SNAPSHOT.jar app.jar
COPY ${JAR_FILE} app.jar

# Run the jar file.
ENTRYPOINT ["java", "-jar", "app.jar"]
CMD ["java", "-jar", "app.jar"]

0 comments on commit b64a8bc

Please sign in to comment.