Skip to content

Commit

Permalink
updated dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
libmartinito committed Oct 9, 2023
1 parent 284753f commit b37d076
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dockerfiles/java-1.8.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ ARG docker_explorer_version=v18
RUN curl --fail -Lo /usr/local/bin/docker-explorer https://github.com/codecrafters-io/docker-explorer/releases/download/${docker_explorer_version}/${docker_explorer_version}_linux_amd64
RUN chmod +x /usr/local/bin/docker-explorer

COPY pom.xml /app/pom.xml

WORKDIR /app

# Download dependencies
RUN mv /app/target /app-cached
RUN mvn -B package -Ddir=/tmp/codecrafters-docker-target

# Cache dependencies
RUN mkdir -p /app-cached
RUN mv /app/target /app-cached

# Pre-compile steps
Expand Down

0 comments on commit b37d076

Please sign in to comment.