mirror of
https://github.com/tiennm99/store-scraper-bot-java.git
synced 2026-05-15 21:53:11 +00:00
Update Dockerfile
This commit is contained in:
+4
-6
@@ -1,16 +1,14 @@
|
||||
FROM gradle:8-jdk21-alpine AS deps
|
||||
WORKDIR /build
|
||||
RUN --mount=type=bind,source=build.gradle.kts,target=build.gradle.kts \
|
||||
--mount=type=bind,source=settings.gradle.kts,target=settings.gradle.kts \
|
||||
--mount=type=cache,target=/root/.gradle \
|
||||
COPY build.gradle.kts settings.gradle.kts ./
|
||||
RUN --mount=type=cache,target=/root/.gradle \
|
||||
gradle dependencies -x check -x test --no-daemon --parallel --build-cache
|
||||
|
||||
FROM deps as package
|
||||
WORKDIR /build
|
||||
COPY ./src src/
|
||||
RUN --mount=type=bind,source=build.gradle.kts,target=build.gradle.kts \
|
||||
--mount=type=bind,source=settings.gradle.kts,target=settings.gradle.kts \
|
||||
--mount=type=cache,target=/root/.gradle \
|
||||
RUN --mount=type=cache,target=/root/.gradle \
|
||||
--mount=type=cache,target=/build/build \
|
||||
gradle build -x check -x test --no-daemon --parallel --build-cache
|
||||
|
||||
FROM eclipse-temurin:21-jre-jammy AS final
|
||||
|
||||
Reference in New Issue
Block a user