Files
IRC-kosmi-relay/Dockerfile

37 lines
838 B
Docker
Raw Permalink Normal View History

2025-10-31 21:41:27 -04:00
# Single-stage build for Matterbridge with Kosmi bridge (Native WebSocket)
FROM golang:1.23-alpine
2025-10-31 16:17:04 -04:00
WORKDIR /app
2025-11-02 16:04:03 -05:00
# Install essential dependencies and Chromium for authentication
# Chromium is needed for email/password authentication via browser automation
RUN apk add --no-cache \
ca-certificates \
chromium \
chromium-chromedriver \
nss \
freetype \
harfbuzz \
ttf-freefont
# Set environment variables for Chromium
ENV CHROME_BIN=/usr/bin/chromium-browser \
CHROME_PATH=/usr/lib/chromium/
2025-10-31 16:17:04 -04:00
# Copy go mod files
COPY go.mod go.sum ./
RUN go mod download
# Copy source code
COPY . .
# Build matterbridge
RUN go build -o matterbridge .
# Copy configuration
COPY matterbridge.toml /app/matterbridge.toml.example
# Run matterbridge
ENTRYPOINT ["/app/matterbridge"]
CMD ["-conf", "/app/matterbridge.toml"]