Files
kforge/Dockerfile
T
nate.lubitz 5a0505a9ea
Publish Action Image / build (push) Failing after 34s
remove bash, make temp file
2026-06-05 04:05:00 +10:00

14 lines
481 B
Docker

FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY . .
RUN go build -o kforge .
FROM alpine:3.19
COPY --from=builder /app/kforge /usr/local/bin/kforge
RUN apk add --no-cache curl sh docker-cli && \
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]