diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 1d182694b..26a85c3dd 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -76,6 +76,11 @@ jobs: if: env.CACHE_HIT == 'false' uses: gradle/actions/setup-gradle@v3 + - name: Build Backend + if: env.CACHE_HIT == 'false' + working-directory: ./backend + run: ./gradlew bootJar + - name: Build and push image if input files changed if: env.CACHE_HIT == 'false' uses: docker/build-push-action@v5 diff --git a/backend/Dockerfile b/backend/Dockerfile index e1ebaa37c..b8615139e 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -4,8 +4,6 @@ WORKDIR /app COPY build/libs/backend.jar app.jar -# Expose the port your application uses EXPOSE 8079 -# Command to run your jar ENTRYPOINT ["java", "-jar", "app.jar", "--spring.profiles.active=docker"]