Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nareunhang authored Oct 29, 2024
1 parent 5f85a12 commit ac381ba
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,7 @@ ENV PATH=${GRADLE_HOME}/bin:${PATH}
WORKDIR /app

# GitHub Actions에서 빌드된 JAR 파일만 복사
COPY build/libs/McpBackend-Terraform-0.0.1-SNAPSHOT.jar McpBackend-Terraform-0.0.1-SNAPSHOT.jar

# 기본 셸을 bash로 설정
SHELL ["/bin/bash", "-c"]
COPY build/libs/McpBackend-Terraform-0.0.1-SNAPSHOT.jar /app/McpBackend-Terraform-0.0.1-SNAPSHOT.jar

# 컨테이너 시작 시 실행할 명령어
CMD ["/bin/bash"]

# 6. 애플리케이션을 실행할 명령어
ENTRYPOINT ["java", "-jar", "McpBackend-Terraform-0.0.1-SNAPSHOT.jar"]
ENTRYPOINT ["java", "-jar", "/app/McpBackend-Terraform-0.0.1-SNAPSHOT.jar"]

0 comments on commit ac381ba

Please sign in to comment.