|
1 |
| -# image was bootstraped using FROM lfedge/eve-alpine-base:fad44e3702708a8d044663a20fd98d933dddb41e AS cache |
| 1 | +# image was bootstraped using FROM lfedge/eve-alpine-base:353bf866797f6e60f91cbe1b00c439634adfcf13 AS cache |
2 | 2 | # to update please see https://github.com/lf-edge/eve/blob/master/docs/BUILD.md#how-to-update-eve-alpine-package
|
3 |
| -FROM lfedge/eve-alpine:43c5a193374e44350e27fad7ad6fe28a929109b5 AS cache |
| 3 | +FROM lfedge/eve-alpine-base:353bf866797f6e60f91cbe1b00c439634adfcf13 AS cache |
| 4 | + |
| 5 | +FROM lfedge/eve-alpine:b96ae7c5b776702cdc7596e3722e40cc0d353ad7 AS cache-riscv64 |
| 6 | +FROM cache AS cache-amd64 |
| 7 | +FROM cache AS cache-arm64 |
| 8 | +# hadolint ignore=DL3006 |
| 9 | +FROM cache-${TARGETARCH} AS cache-build |
4 | 10 |
|
5 | 11 | ARG ALPINE_VERSION=3.16
|
6 | 12 | # this is only needed once, when this package
|
7 | 13 | # is rebased on the new version of Alpine and
|
8 | 14 | # you have to have FROM alpine:x.y.z above:
|
9 |
| -# RUN apk update && apk upgrade -a |
| 15 | +RUN apk update && apk upgrade -a |
10 | 16 |
|
11 | 17 | # Copy Dockerfile so we can include it in the hash
|
12 | 18 | COPY Dockerfile abuild.conf /etc/
|
13 | 19 | COPY mirrors /tmp/mirrors/
|
14 | 20 | COPY build-cache.sh /bin/
|
15 | 21 |
|
16 | 22 | # install abuild for signing (which requires gcc as well)
|
| 23 | +# hadolint ignore=DL3018 |
17 | 24 | RUN apk add --no-cache abuild gcc sudo
|
18 | 25 |
|
19 | 26 | # install a new key into /etc/apk/keys
|
@@ -42,9 +49,9 @@ RUN apk update
|
42 | 49 |
|
43 | 50 | FROM lfedge/eve-alpine:591df01e581889c3027514c8a91feaca1c8ad49f AS compactor
|
44 | 51 |
|
45 |
| -COPY --from=cache /etc/apk/repositories* /etc/apk/ |
46 |
| -COPY --from=cache /etc/apk/keys /etc/apk/keys/ |
47 |
| -COPY --from=cache /mirror /mirror/ |
| 52 | +COPY --from=cache-build /etc/apk/repositories* /etc/apk/ |
| 53 | +COPY --from=cache-build /etc/apk/keys /etc/apk/keys/ |
| 54 | +COPY --from=cache-build /mirror /mirror/ |
48 | 55 | COPY eve-alpine-deploy.sh go-compile.sh /bin/
|
49 | 56 |
|
50 | 57 | RUN apk update && apk upgrade -a
|
|
0 commit comments