minor tweak
This commit is contained in:
30
Dockerfile
30
Dockerfile
@@ -1,28 +1,10 @@
|
||||
# Single-stage build for Matterbridge with Kosmi bridge (Playwright)
|
||||
FROM golang:1.23-bookworm
|
||||
# Single-stage build for Matterbridge with Kosmi bridge (Native WebSocket)
|
||||
FROM golang:1.23-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies for Playwright Chromium
|
||||
RUN apt-get update && apt-get install -y \
|
||||
ca-certificates \
|
||||
chromium \
|
||||
libnss3 \
|
||||
libnspr4 \
|
||||
libatk1.0-0 \
|
||||
libatk-bridge2.0-0 \
|
||||
libcups2 \
|
||||
libdrm2 \
|
||||
libdbus-1-3 \
|
||||
libxkbcommon0 \
|
||||
libxcomposite1 \
|
||||
libxdamage1 \
|
||||
libxfixes3 \
|
||||
libxrandr2 \
|
||||
libgbm1 \
|
||||
libasound2 \
|
||||
libatspi2.0-0 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
# Install only essential dependencies
|
||||
RUN apk add --no-cache ca-certificates
|
||||
|
||||
# Copy go mod files
|
||||
COPY go.mod go.sum ./
|
||||
@@ -34,10 +16,6 @@ COPY . .
|
||||
# Build matterbridge
|
||||
RUN go build -o matterbridge .
|
||||
|
||||
# Install playwright-go CLI and drivers
|
||||
RUN go install github.com/playwright-community/playwright-go/cmd/playwright@latest && \
|
||||
$(go env GOPATH)/bin/playwright install --with-deps chromium
|
||||
|
||||
# Copy configuration
|
||||
COPY matterbridge.toml /app/matterbridge.toml.example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user