From 54664e306bd5f3a743960fd6796922148e72ad08 Mon Sep 17 00:00:00 2001 From: Harshal Rembhotkar Date: Tue, 25 Feb 2025 11:28:44 +0530 Subject: [PATCH 1/2] Updated:Dockerfile --- Dockerfile.java | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Dockerfile.java b/Dockerfile.java index 7e46ecb..178c451 100644 --- a/Dockerfile.java +++ b/Dockerfile.java @@ -1,4 +1,14 @@ -FROM openjdk:latest -COPY . /src -WORKDIR /src +FROM openjdk:17-jdk-alpine +WORKDIR /app + +# Only copy the JAR if it exists +COPY ./target/concore-0.0.1-SNAPSHOT.jar /app/concore.jar || true + +# Ensure the JAR file is executable if present +RUN [ -f /app/concore.jar ] && chmod +x /app/concore.jar || true + +EXPOSE 3000 + +# Run Java app only if the JAR exists, otherwise do nothing +CMD ["/bin/sh", "-c", "if [ -f /app/concore.jar ]; then java -jar /app/concore.jar; else echo 'No Java application found, exiting'; fi"] From aa42f513c7981d07476760fe7081a4c481596182 Mon Sep 17 00:00:00 2001 From: Harshal Rembhotkar Date: Tue, 25 Feb 2025 11:48:41 +0530 Subject: [PATCH 2/2] modify:Draft.yaml --- .github/workflows/draft-pdf.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/draft-pdf.yml b/.github/workflows/draft-pdf.yml index cf6d3db..baeead9 100644 --- a/.github/workflows/draft-pdf.yml +++ b/.github/workflows/draft-pdf.yml @@ -14,7 +14,8 @@ jobs: # This should be the path to the paper within your repo. paper-path: paper.md - name: Upload - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 + with: name: paper # This is the output path where Pandoc will write the compiled