# Use Alpine for the smallest footprint FROM public.ecr.aws/docker/library/alpine:latest # Install dependencies for flyctl and general plugin usage # ca-certificates is required for HTTPS requests to the Fly.io API RUN apk add --no-cache ca-certificates curl bash # Install flyctl # This uses the official install script which detects architecture automatically RUN curl -L https://fly.io/install.sh | sh # 3. Add flyctl to the PATH ENV FLYCTL_INSTALL="/root/.fly" ENV PATH="$FLYCTL_INSTALL/bin:$PATH"