|
1 | 1 | # Use the official Alpine Linux image as the base image |
2 | | -FROM --platform="linux/${TARGETARCH}" alpine:latest as featherhash-bellows |
| 2 | +FROM --platform="linux/${TARGETARCH}" alpine:latest AS base-plus-dash |
| 3 | +LABEL version="3.0" |
| 4 | +LABEL org.opencontainers.image.title="base-plus-dash" |
| 5 | +LABEL org.opencontainers.image.description="Custom Alpine image with the dash shell installed." |
| 6 | +LABEL org.opencontainers.image.vendor="individual" |
| 7 | +LABEL org.opencontainers.image.licenses="BSD-2-Clause" |
| 8 | +SHELL [ "/bin/sh", "-c" ] |
| 9 | + |
| 10 | +RUN --mount=type=cache,target=/var/cache/apk,sharing=locked --network=default \ |
| 11 | + apk update \ |
| 12 | + && apk add cmd:dash |
| 13 | +SHELL [ "/bin/dash", "-l", "-c" ] |
| 14 | +ENTRYPOINT ["/bin/dash"] |
| 15 | +ENV DASH='/bin/dash' |
| 16 | +ENV HOSTNAME="base-plus-dash" |
| 17 | +# default to double login |
| 18 | +CMD [ "/bin/dash", "-l", "-c", "'exec -a dash /bin/dash -il'" ] |
| 19 | + |
| 20 | +FROM --platform="linux/${TARGETARCH}" base-plus-dash as featherhash-bellows |
3 | 21 |
|
4 | 22 | RUN mkdir -p /FeatherHash/FeatherHash && \ |
5 | 23 | mkdir -p /FeatherHash/tests |
@@ -45,7 +63,7 @@ ENTRYPOINT ["./out/bin/sha256sum"] |
45 | 63 | FROM --platform="linux/${TARGETARCH}" scratch AS featherhash-shasum |
46 | 64 |
|
47 | 65 | # set inherited values |
48 | | -LABEL version="1.0" |
| 66 | +LABEL version="1.1" |
49 | 67 | LABEL org.opencontainers.image.title="FeatherHash-shasum" |
50 | 68 | LABEL org.opencontainers.image.description="Empty image with stage0 sha256sum, sha384sum, and sha512sum installed" |
51 | 69 | LABEL org.opencontainers.image.vendor="individual" |
|
0 commit comments