Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuridech committed Oct 27, 2023
1 parent 2e0fe1b commit fe447c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,15 @@ jobs:
needs: quality-check

steps:
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17

- uses: actions/checkout@v4

- name: Unit test outside Docker-compose
run: ./gradlew test

- name: Setup SHA
run: echo "GITHUB_SHA=${GITHUB_SHA}" >> $GITHUB_ENV

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.multi
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ RUN ["./gradlew","bootJar"]
# stage-2 running image
FROM gcr.io/distroless/java17-debian12:latest
WORKDIR /app
COPY --from=builder ""/app/build/libs/demo-0.0.1-SNAPSHOT.jar demo-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "demo-0.0.1-SNAPSHOT.jar"]
COPY --from=builder ""/app/build/libs/petstore-0.0.1-SNAPSHOT.jar petstore-0.0.1-SNAPSHOT.jar
ENTRYPOINT ["java", "-jar", "petstore-0.0.1-SNAPSHOT.jar"]

0 comments on commit fe447c8

Please sign in to comment.