Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/draft-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 13 additions & 3 deletions Dockerfile.java
Original file line number Diff line number Diff line change
@@ -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"]