Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
name: Build Edge Image
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -42,7 +45,7 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v5

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -90,7 +93,7 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
context: .
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
19 changes: 4 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ FROM golang:1.25.0 AS base
FROM base AS builder
RUN go build -o /stream ./cmd/main.go

# Download Chrome in a separate stage so it's done parallel to the rest of the build
FROM curlimages/curl:latest AS downloader
RUN curl -fsSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
-o google-chrome-stable_current_amd64.deb

# Run using FFmpeg image with Chrome support
FROM linuxserver/ffmpeg:7.1.1 AS runner
# Install runtime dependencies
# Run using Chromium image with FFmpeg support
FROM linuxserver/chromium:latest AS runner
# Install FFmpeg and runtime dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
xvfb \
x11-utils \
pulseaudio \
Expand All @@ -30,13 +26,6 @@ FROM linuxserver/ffmpeg:7.1.1 AS runner
dbus \
&& rm -rf /var/lib/apt/lists/*

# Install Chrome from downloaded .deb
COPY --from=downloader /home/curl_user/google-chrome-stable_current_amd64.deb /tmp/google-chrome-stable_current_amd64.deb
RUN apt-get update \
&& apt-get install -y /tmp/google-chrome-stable_current_amd64.deb \
&& rm /tmp/google-chrome-stable_current_amd64.deb \
&& rm -rf /var/lib/apt/lists/*

# Create directories for audio configs
RUN mkdir -p /root/.config/pulse /var/run/pulse /var/run/dbus

Expand Down