-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.flyio
28 lines (19 loc) · 957 Bytes
/
Dockerfile.flyio
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM --platform=$TARGETPLATFORM amazonlinux
ARG TARGETARCH
ARG BUILDKIT_VERSION
ARG MACHINE_AGENT_VERSION
ARG CNI_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 -zxv -C /usr/bin --strip-components=1
RUN curl -L "https://dl.depot.dev/machine-agent/download/linux/$(uname -m)/${MACHINE_AGENT_VERSION}" | \
tar -zxv --strip-components=1 --directory /usr/bin bin/machine-agent
RUN mkdir -p /opt/cni/bin/ && \
curl -L "https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-linux-${TARGETARCH}-${CNI_VERSION}.tgz" | \
tar -C /opt/cni/bin/ -zxv
# TODO: install vector
# TODO: binfmt/dagger engine