mirror of
https://github.com/kubereboot/kured.git
synced 2026-02-14 17:39:49 +00:00
Bumps alpine from 3.18.5 to 3.19.0. --- updated-dependencies: - dependency-name: alpine dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
26 lines
637 B
Docker
26 lines
637 B
Docker
FROM --platform=$TARGETPLATFORM alpine:3.19.0 as bin
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
ARG TARGETVARIANT
|
|
|
|
COPY dist/ /dist
|
|
RUN set -ex \
|
|
&& case "${TARGETARCH}" in \
|
|
amd64) \
|
|
SUFFIX="_v1" \
|
|
;; \
|
|
arm) \
|
|
SUFFIX="_${TARGETVARIANT:1}" \
|
|
;; \
|
|
*) \
|
|
SUFFIX="" \
|
|
;; \
|
|
esac \
|
|
&& cp /dist/kured_${TARGETOS}_${TARGETARCH}${SUFFIX}/kured /dist/kured;
|
|
|
|
FROM --platform=$TARGETPLATFORM alpine:3.19.0
|
|
RUN apk update --no-cache && apk upgrade --no-cache && apk add --no-cache ca-certificates tzdata
|
|
COPY --from=bin /dist/kured /usr/bin/kured
|
|
ENTRYPOINT ["/usr/bin/kured"]
|