From 64942864bf43d7896ec8b2bd0686855092deafff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Urban?= Date: Sat, 23 Sep 2023 17:40:15 +0200 Subject: [PATCH] fix:[infra] add dockerfile and update workflow --- .github/workflows/push.yml | 2 +- .gitignore | 2 +- Dockerfile | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 Dockerfile diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 384b633..cda7120 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -86,7 +86,7 @@ jobs: with: context: . push: true - tags: ${{ secrets.DOCKERHUB_USERNAME }}/webcv:${{ env.BRANCH_NAME }} + tags: ${{ secrets.DOCKERHUB_USERNAME }}/cardmaster:${{ env.BRANCH_NAME }} release: needs: build-docker runs-on: ubuntu-latest diff --git a/.gitignore b/.gitignore index 1935a16..3dc8560 100644 --- a/.gitignore +++ b/.gitignore @@ -39,4 +39,4 @@ out/ secrets.conf -../src/main/resources/dist \ No newline at end of file +src/main/resources/dist \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9472a27 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM openjdk:17 +LABEL authors="Bjoern Urban" +EXPOSE 8080:8080 +RUN mkdir /app +COPY src/build/libs/*.jar /app/ +ENTRYPOINT ["java","-jar","/app/cardmaster-all.jar"] \ No newline at end of file