Skip to content

Commit c92afbc

Browse files
authored
use base to access download.sh
1 parent 3758401 commit c92afbc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

alpaca/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# syntax=docker/dockerfile:1.5.1
2-
FROM gradle:6.9.4-jdk11@sha256:a21f8e1124fefb9b2affc85b7fa3bc856297056678b5cc882a61a8d6249da3a2 AS builder
2+
FROM base AS download
33

4-
WORKDIR /build
4+
WORKDIR /opt/download
55

66
# renovate: datasource=github-releases depName=alpaca packageName=islandora/alpaca
77
ARG ALPACA_VERSION=2.4.0
@@ -12,6 +12,12 @@ RUN download.sh \
1212
--sha256 "${ALPACA_SHA256}" \
1313
--dest .
1414

15+
FROM gradle:6.9.4-jdk11@sha256:a21f8e1124fefb9b2affc85b7fa3bc856297056678b5cc882a61a8d6249da3a2 AS builder
16+
17+
WORKDIR /build
18+
19+
COPY --from=base /opt/download .
20+
1521
RUN --mount=type=cache,id=alpaca-gradle,sharing=locked,target=/root/.gradle \
1622
./gradlew --stacktrace clean build shadowJar --no-daemon
1723

0 commit comments

Comments
 (0)