Skip to content

Commit

Permalink
feat: add fly container
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Goller <[email protected]>
  • Loading branch information
goller committed Apr 23, 2024
1 parent 8988901 commit 88ad7a1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile.flyio
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 88ad7a1

Please sign in to comment.