From 88ad7a1922234c9c12d364cb21a3c27f55484776 Mon Sep 17 00:00:00 2001 From: Chris Goller Date: Tue, 23 Apr 2024 14:40:13 -0500 Subject: [PATCH] feat: add fly container Signed-off-by: Chris Goller --- Dockerfile.flyio | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile.flyio diff --git a/Dockerfile.flyio b/Dockerfile.flyio new file mode 100644 index 0000000..2a5cc14 --- /dev/null +++ b/Dockerfile.flyio @@ -0,0 +1,22 @@ +FROM --platform=$TARGETPLATFORM amazonlinux + +ARG TARGETARCH +ARG BUILDKIT_VERSION +ARG MACHINE_AGENT_VERSION + +RUN dnf upgrade -y && \ + dnf install -y htop wget git lsof fuse3 tar pigz e2fsprogs psmisc && \ + dnf clean all + +SHELL ["/bin/bash", "-o", "pipefail", "-c"] + +RUN mkdir -p /etc/buildkit && \ + curl -L "https://github.com/depot/buildkit/releases/download/${BUILDKIT_VERSION}/buildkit-${BUILDKIT_VERSION}.linux-${TARGETARCH}.tar.gz" | \ + tar -xz -C /usr/bin --strip-components=1 + +RUN curl -L "https://dl.depot.dev/machine-agent/download/linux/$(uname -m)/${MACHINE_AGENT_VERSION}" | \ + tar -zx --strip-components=1 --directory /usr/bin bin/machine-agent + +# TODO: install vector +# TODO: binfmt/dagger engine +