Files
IRC-kosmi-relay/Dockerfile

25 lines
505 B
Docker
Raw 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-10-31 21:41:27 -04:00
# Install only essential dependencies
RUN apk add --no-cache ca-certificates
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"]