Skip to content

Commit

Permalink
Merge branch 'develop' into fix/invalid-credentials-on-email-doesnt-e…
Browse files Browse the repository at this point in the history
…xist
  • Loading branch information
MRita443 authored Feb 25, 2025
2 parents 40fcb74 + d7e45c4 commit 864af85
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: ./gradlew ktlintCheck

- name: Upload ktlint report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: lint-reports
path: build/reports/ktlint
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
uses: codecov/codecov-action@v3

- name: Upload test reports
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-reports
path: |
Expand Down
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Setup builder
FROM gradle:8.5.0-jdk17-alpine AS build
ENV APP_HOME=/usr/app
WORKDIR ${APP_HOME}
COPY build.gradle.kts settings.gradle.kts ${APP_HOME}

# Configure repository
COPY gradle ${APP_HOME}/gradle
COPY --chown=gradle:gradle . /home/gradle/src
USER root
RUN chown -R gradle /home/gradle/src

# Build jar
RUN gradle build || return 0
COPY . .
RUN gradle clean build

# Setup runner
FROM gradle:8.5.0-jdk17-alpine AS runner
ENV ARTIFACT_NAME=backend-0.0.1-SNAPSHOT.jar
ENV APP_HOME=/usr/app
WORKDIR ${APP_HOME}
COPY --from=build ${APP_HOME}/build/libs/${ARTIFACT_NAME} .

# Run
EXPOSE 8080
ENTRYPOINT ["sh", "-c", "java -jar ${ARTIFACT_NAME}"]

0 comments on commit 864af85

Please sign in to comment.