From fab4fa7a0d184cd23dd4c8d7b93d11191187dcc7 Mon Sep 17 00:00:00 2001 From: Arumugam J Date: Thu, 7 Mar 2024 21:22:06 -0500 Subject: [PATCH] fix Dockerfile --- .github/workflows/docker-publish.yml | 2 +- Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 2006723..492c74a 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -57,7 +57,7 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v5 with: - context: server + context: "{{defaultContext}}:server" file: Dockerfile push: true labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile index c08bb9c..f82c79a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ ENV BIND=0.0.0.0 WORKDIR /app EXPOSE 8080 -ADD static /app/static -ADD build/libs/server-all.jar /app +ADD ./static /app/static +ADD ./build/libs/server-all.jar /app ENTRYPOINT java -jar /app/server-all.jar