Skip to content

Commit

Permalink
CC-810 added java-21 dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
libmartinito committed Nov 1, 2023
1 parent 8e6d425 commit 20d108f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dockerfiles/java-21.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM maven:3.9.5-eclipse-temurin-21-alpine

COPY pom.xml /app/pom.xml

WORKDIR /app

# Download the dependencies
RUN mvn -B package -Ddir=/tmp/codecrafters-bittorrent-target

# Cache Dependencies
RUN mkdir -p /app-cached
RUN mv /app/target /app-cached # Is this needed?

# Pre-compile steps
RUN echo "cd \${CODECRAFTERS_SUBMISSION_DIR} && mvn -B package -Ddir=/tmp/codecrafters-bittorrent-target && sed -i 's/^\(mvn .*\)/#\1/' ./your_bittorrent.sh" > /codecrafters-precompile.sh
RUN chmod +x /codecrafters-precompile.sh

0 comments on commit 20d108f

Please sign in to comment.