Skip to content

Commit

Permalink
Cleanup dockerfile
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
evrardjp committed Oct 17, 2024
1 parent 9592fbc commit f04c41f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$TARGETPLATFORM alpine:3.20.3 as bin
FROM alpine:3.20.3 AS bin

ARG TARGETOS
ARG TARGETARCH
Expand All @@ -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"]

0 comments on commit f04c41f

Please sign in to comment.