Skip to content

Commit

Permalink
Dockerfile: cache .m2 and .vaadin
Browse files Browse the repository at this point in the history
  • Loading branch information
mvysny committed Jan 15, 2025
1 parent bee8895 commit c62d91f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
FROM eclipse-temurin:17 AS BUILD
COPY . /app/
WORKDIR /app/
RUN --mount=type=cache,target=/root/.gradle --mount=type=cache,target=/root/.vaadin ./gradlew clean build -Pvaadin.productionMode --no-daemon --info --stacktrace
RUN --mount=type=cache,target=/root/.gradle --mount=type=cache,target=/root/.vaadin rm -rf .gradle/caches/modules-2/modules-2.lock .gradle/caches/*/plugin-resolution .gradle/caches/journal-1 && .gradle/ ./gradlew clean build -Pvaadin.productionMode --no-daemon --info --stacktrace
WORKDIR /app/vok-example-crud/build/distributions/
RUN ls -la
RUN tar xvf vok-example-crud-*.tar && rm vok-example-crud-*.tar && rm vok-example-crud-*.zip
Expand Down

0 comments on commit c62d91f

Please sign in to comment.