Skip to content

Commit

Permalink
list cache content
Browse files Browse the repository at this point in the history
  • Loading branch information
meier-rene committed Oct 29, 2024
1 parent 644e77a commit 65abb51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ COPY pom.xml /MetFragRelaunched/
RUN printf '# local database file folder \n\
LocalDatabasesFolderForWeb = /vol/file_databases' > /MetFragRelaunched/MetFragWeb/src/main/webapp/resources/settings.properties

RUN --mount=type=cache,target=/root/.m2 mvn -f MetFragRelaunched clean package -pl MetFragWeb -am -DskipTests
# Debug step to check cache contents
RUN --mount=type=cache,target=/root/.m2 ls -la /root/.m2/repository

# Cache Maven dependencies using a named cache
RUN --mount=type=cache,target=/root/.m2,source=maven_cache mvn -f MetFragRelaunched clean package -pl MetFragWeb -am -DskipTests
#RUN --mount=type=cache,target=/root/.m2 mvn -f MetFragRelaunched clean package -pl MetFragWeb -am -DskipTests

FROM alpine:latest AS downloader

Expand Down

0 comments on commit 65abb51

Please sign in to comment.