Skip to content

Commit ef628ee

Browse files
CopilotZozman
andcommitted
Fix multi-architecture Chrome installation - replace with Chromium
Co-authored-by: Zozman <1192364+Zozman@users.noreply.github.com>
1 parent cd85326 commit ef628ee

2 files changed

Lines changed: 7 additions & 20 deletions

File tree

Dockerfile

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
# Setup base
2-
FROM golang:1.24.5-alpine AS base
2+
FROM golang:1.24.5 AS base
33
WORKDIR /app
4-
# Install ca-certificates to fix TLS issues
5-
RUN apk add --no-cache ca-certificates
64
COPY ./go.mod ./
75
COPY ./go.sum ./
8-
# Set Go proxy and checksum database for better reliability
9-
ENV GOPROXY=https://proxy.golang.org,direct
10-
ENV GOSUMDB=sum.golang.org
6+
# Use direct proxy to avoid TLS issues
7+
ENV GOPROXY=direct
118
RUN go mod download
129
COPY ./main.go ./
1310

1411
# Setup builder
1512
FROM base AS builder
1613
RUN go build -o /stream ./main.go
1714

18-
# Download Chrome
19-
FROM curlimages/curl:latest AS downloader
20-
RUN curl -fsSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
21-
-o google-chrome-stable_current_amd64.deb
22-
23-
# Run using FFmpeg image with Chrome support
15+
# Run using FFmpeg image with Chromium support
2416
FROM linuxserver/ffmpeg:7.1.1 AS runner
2517

26-
# Install runtime dependencies
18+
# Install runtime dependencies and Chromium
2719
RUN apt-get update && apt-get install -y \
2820
xvfb \
2921
x11-utils \
@@ -32,13 +24,7 @@ RUN apt-get update && apt-get install -y \
3224
alsa-utils \
3325
libasound2-plugins \
3426
dbus \
35-
&& rm -rf /var/lib/apt/lists/*
36-
37-
# Install Chrome from downloaded .deb
38-
COPY --from=downloader /home/curl_user/google-chrome-stable_current_amd64.deb /tmp/google-chrome-stable_current_amd64.deb
39-
RUN apt-get update \
40-
&& apt-get install -y /tmp/google-chrome-stable_current_amd64.deb \
41-
&& rm /tmp/google-chrome-stable_current_amd64.deb \
27+
chromium-browser \
4228
&& rm -rf /var/lib/apt/lists/*
4329

4430
# Create directories for audio configs

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ func getEnvOrDefault(key, defaultValue string) string {
9898
func streamWebsite(ctx context.Context, config *Config) error {
9999
// Create Chrome context with options for screen capture
100100
opts := append(chromedp.DefaultExecAllocatorOptions[:],
101+
chromedp.ExecPath("chromium-browser"), // Use chromium-browser binary
101102
chromedp.Flag("headless", false), // We need non-headless for video capture
102103
chromedp.Flag("disable-gpu", false),
103104
chromedp.Flag("no-sandbox", true),

0 commit comments

Comments
 (0)