Skip to content

Commit

Permalink
cross arch builds, upstream debian and yt/pipes fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
spurin committed Dec 16, 2024
1 parent 4977861 commit aaefeff
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:jessie
FROM debian

MAINTAINER Werner Beroux <[email protected]>

Expand Down Expand Up @@ -32,13 +32,12 @@ RUN apt-get update \
vlc \
watch \
xaos \

&& echo "Install lolcat and youtube-dl" \
&& echo "deb http://http.us.debian.org/debian sid main non-free contrib" >> /etc/apt/sources.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
lolcat \
youtube-dl \
ffmpeg \

&& echo "Install youtube-dl" \
&& curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/bin/youtube-dl \
&& chmod 755 /usr/bin/youtube-dl \

&& echo "Install asciiquarium" \
&& cpan -i Term::Animation \
Expand All @@ -53,7 +52,7 @@ RUN apt-get update \
&& chmod +x /usr/local/bin/falling-hearts \

&& echo "Install pipes" \
&& curl -L https://gist.githubusercontent.com/livibetter/4689307/raw/949e43fe2962c2c97c8b1d974ff93dd053d9bd37/pipes.sh -o /usr/local/bin/pipes \
&& curl -L https://raw.githubusercontent.com/pipeseroni/pipes.sh/refs/heads/master/pipes.sh -o /usr/local/bin/pipes \
&& chmod +x /usr/local/bin/pipes \

&& echo "Clean-up" \
Expand Down
11 changes: 11 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# Setup buildx environment
docker buildx create --name build_cross --driver-opt env.BUILDKIT_STEP_LOG_MAX_SIZE=10000000 --driver-opt env.BUILDKIT_STEP_LOG_MAX_SPEED=10000000 || true
docker buildx use build_cross

# Build and push
docker buildx build --platform linux/386,linux/amd64,linux/arm64/v8,linux/arm/v6,linux/arm/v7,linux/ppc64le,linux/s390x -t wernight/funbox:latest . --push

# Update local image
docker pull wernight/funbox:latest

0 comments on commit aaefeff

Please sign in to comment.