Skip to content

Commit

Permalink
[FIX] Dockerfile Jar 파일 경로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
rhkr8521 authored Jun 28, 2024
1 parent 9b3547f commit c70a754
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ChargeControlBackend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Dockerfile

# Use JDK 17 as the base image
FROM openjdk:17

ARG JAR_FILE=ChargeControlBackend/build/libs/ChargeControlServer-0.0.1-SNAPSHOT.jar
COPY ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","app.jar"]
# Set the argument for the JAR file location
ARG JAR_FILE=build/libs/ChargeControlServer-0.0.1-SNAPSHOT.jar

# Add the JAR file to the Docker image
ADD ${JAR_FILE} chargecontrol.jar

# Set the entry point for the application
ENTRYPOINT ["java", "-jar", "chargecontrol.jar"]

0 comments on commit c70a754

Please sign in to comment.