mirror of
https://github.com/kubereboot/kured.git
synced 2026-05-06 00:17:24 +00:00
Cleanup dockerfile (#996)
Without this, docker buildx will complain about the following issues: - "RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior" - "FromAsCasing: 'as' and 'FROM' keywords' casing do not match" This fixes it. Signed-off-by: Jean-Philippe Evrard <open-source@a.spamming.party>
This commit is contained in:
committed by
GitHub
parent
11acd1a86d
commit
d29cc2ae68
@@ -1,4 +1,4 @@
|
||||
FROM --platform=$TARGETPLATFORM alpine:3.20.3 as bin
|
||||
FROM alpine:3.20.3 AS bin
|
||||
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
@@ -19,7 +19,7 @@ RUN set -ex \
|
||||
esac \
|
||||
&& cp /dist/kured_${TARGETOS}_${TARGETARCH}${SUFFIX}/kured /dist/kured;
|
||||
|
||||
FROM --platform=$TARGETPLATFORM alpine:3.20.3
|
||||
FROM alpine:3.20.3
|
||||
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"]
|
||||
|
||||
Reference in New Issue
Block a user