From 8b670c5fda5aaac5651e6b2da245c1a722eb088c Mon Sep 17 00:00:00 2001 From: gabang2 Date: Fri, 31 May 2024 05:03:09 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B6=94=EA=B0=80:=20firebase-service-key=20?= =?UTF-8?q?=EA=B4=80=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e9e6a93..28e6b79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,11 @@ FROM openjdk:11 + +# JAR 파일을 컨테이너로 복사 ARG JAR_FILE=build/libs/*.jar COPY ${JAR_FILE} app.jar -ENTRYPOINT ["java","-jar","/app.jar"] \ No newline at end of file + +# firebase-service-key.json 파일을 컨테이너로 복사 +COPY src/main/resources/firebase-service-key.json /app/resources/firebase-service-key.json + +# 애플리케이션 실행 +ENTRYPOINT ["java", "-jar", "/app.jar"]