mirror of
https://github.com/tiennm99/store-scraper-bot.git
synced 2026-10-11 12:29:01 +00:00
Update Dockerfile
This commit is contained in:
1 parent
fda465925c
commit
d7189c152e
1 file changed
+4
-6
+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