Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: chmod +x ./gradlew
working-directory: ./backend

- name: Build JAR without tests
- name: Build JAR with Gradle
run: ./gradlew build -x test --no-daemon
working-directory: ./backend

Expand All @@ -41,7 +41,7 @@ jobs:

- name: Build Docker image
run: |
docker build -t focussu-backend:latest ./backend
docker build -t focussu-backend:latest .
docker tag focussu-backend:latest ${{ secrets.ECR_REPO_URI }}:latest

- name: Push Docker image
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
java-version: 17
distribution: temurin

- name: Grant execute permission to Gradle wrapper
- name: Grant permission to Gradle wrapper
run: chmod +x gradlew

- name: Build JAR without tests
- name: Build without tests
run: ./gradlew build -x test --no-daemon
9 changes: 2 additions & 7 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
# backend/Dockerfile

FROM openjdk:17-slim
WORKDIR /app

# CI에서 빌드된 JAR을 그대로 사용
COPY build/libs/*.jar app.jar

COPY ./backend/build/libs/*.jar app.jar
EXPOSE 80
ENTRYPOINT ["java", "-jar", "app.jar"]
ENTRYPOINT ["java", "-jar", "app.jar"]