From ca91bb302821b864d8f54672f763eaa1e1931f86 Mon Sep 17 00:00:00 2001 From: stephan Date: Sun, 23 Jul 2023 16:15:42 +0200 Subject: [PATCH] fixing docker build 2 --- .github/workflows/build.yaml | 4 +--- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 70e004f..c61b320 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,9 +19,6 @@ jobs: - name: Build with Maven run: mvn --batch-mode --update-snapshots package - - name: Copy artifact - run: mkdir staging && cp target/*.jar staging - - name: Set up QEMU uses: docker/setup-qemu-action@v2 @@ -37,6 +34,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v4 with: + context: . platforms: linux/arm/v7 push: true tags: stephanst/chicken-farm:latest diff --git a/Dockerfile b/Dockerfile index 48b1f6a..68fc7b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,6 @@ FROM eclipse-temurin:17-jdk-jammy EXPOSE 8080 WORKDIR /app -COPY staging/*.jar app.jar +COPY target/*.jar app.jar ENTRYPOINT ["java","-jar","/app/app.jar"] \ No newline at end of file