kompose/Dockerfile
Giso Stallenberg 6910e6fc00
Fix case of FromAs
This fixes a warning in newest docker builder

```
FromAsCasing: 'as' and 'FROM' keywords' casing do not match
```
2025-02-06 16:31:13 +01:00

18 lines
451 B
Docker

# Alpine Builder
FROM alpine AS builder
RUN apk add --no-cache curl
COPY ./build/VERSION VERSION
RUN \
version=$(cat VERSION) && \
ARCH=$(uname -m | sed 's/armv7l/arm/g' | sed 's/aarch64/arm64/g' | sed 's/x86_64/amd64/g') && \
curl -L \
"https://github.com/kubernetes/kompose/releases/download/v${version}/kompose-linux-${ARCH}" \
-o kompose && \
chmod +x kompose
# Runtime
FROM alpine
COPY --from=builder /kompose /usr/bin/kompose