Skip to content

Commit 1fa99df

Browse files
committed
cross arch builds, upstream debian and yt fixes
1 parent 4977861 commit 1fa99df

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:jessie
1+
FROM debian
22

33
MAINTAINER Werner Beroux <[email protected]>
44

@@ -32,13 +32,12 @@ RUN apt-get update \
3232
vlc \
3333
watch \
3434
xaos \
35-
36-
&& echo "Install lolcat and youtube-dl" \
37-
&& echo "deb http://http.us.debian.org/debian sid main non-free contrib" >> /etc/apt/sources.list \
38-
&& apt-get update \
39-
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
4035
lolcat \
41-
youtube-dl \
36+
ffmpeg \
37+
38+
&& echo "Install youtube-dl" \
39+
&& curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/bin/youtube-dl \
40+
&& chmod 755 /usr/bin/youtube-dl \
4241

4342
&& echo "Install asciiquarium" \
4443
&& cpan -i Term::Animation \

build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
# Setup buildx environment
4+
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
5+
docker buildx use build_cross
6+
7+
# Build and push
8+
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
9+
10+
# Update local image
11+
docker pull wernight/funbox:latest

0 commit comments

Comments
 (0)