From 2402914000ecc200520048c2ec54fb98a01fb2d2 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Thu, 4 Aug 2022 13:55:32 -0700 Subject: [PATCH] Explicitly set an alpine build version + install tar into build env --- Earthfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Earthfile b/Earthfile index 4a8b846d6..221cd7d92 100644 --- a/Earthfile +++ b/Earthfile @@ -1,6 +1,6 @@ VERSION --new-platform 0.6 -FROM --platform=linux/amd64 alpine:latest +FROM --platform=linux/amd64 alpine:3.15.5 ARG version=develop WORKDIR /build @@ -17,8 +17,10 @@ docker-all: crosscompiler: # This image is missing a few platforms, so we'll add them locally FROM --platform=linux/amd64 bdwyertech/go-crosscompile - RUN curl -sfL "https://musl.cc/armv7l-linux-musleabihf-cross.tgz" | tar zxf - -C /usr/ --strip-components=1 - RUN curl -sfL "https://musl.cc/i686-linux-musl-cross.tgz" | tar zxf - -C /usr/ --strip-components=1 + RUN apk add --update --no-cache tar gzip >> /dev/null + # RUN curl -sfL "https://musl.cc/armv7l-linux-musleabihf-cross.tgz" | tar xf - -C /usr/ --strip-components=1 + RUN curl -fL "https://musl.cc/armv7l-linux-musleabihf-cross.tgz" -o armv7l-linux-musleabihf-cross.tgz && tar zxf armv7l-linux-musleabihf-cross.tgz -C /usr/ --strip-components=1 + RUN curl -sfL "https://musl.cc/i686-linux-musl-cross.tgz" | tar xf - -C /usr/ --strip-components=1 RUN curl -sfL "https://musl.cc/x86_64-linux-musl-cross.tgz" | tar zxf - -C /usr/ --strip-components=1 code: @@ -119,7 +121,7 @@ docker: ARG image=ghcr.io/owncast/owncast ARG tag=develop ARG TARGETPLATFORM - FROM --platform=$TARGETPLATFORM alpine:latest + FROM --platform=$TARGETPLATFORM alpine:3.15.5 RUN apk update && apk add --no-cache ffmpeg ffmpeg-libs ca-certificates unzip && update-ca-certificates WORKDIR /app COPY --platform=$TARGETPLATFORM +package/owncast.zip /app