Initial mautrix-signal Cloudron package

This commit is contained in:
2026-01-15 16:38:10 -06:00
parent 78176153d6
commit be2944dda1
7 changed files with 460 additions and 1 deletions

44
Dockerfile.cloudron Normal file
View File

@@ -0,0 +1,44 @@
FROM cloudron/base:5.0.0@sha256:04fd70dbd8ad6149c19de39e35718e024417c3e01dc9c6637eaf4a41ec4e596c
# Install dependencies
RUN apt-get update && apt-get install -y \
curl \
ca-certificates \
netcat-openbsd \
bash \
jq \
yq \
git \
build-essential \
libolm-dev \
gosu \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Go
ENV GO_VERSION=1.24.0
RUN curl -LO https://golang.org/dl/go${GO_VERSION}.linux-amd64.tar.gz \
&& tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz \
&& rm go${GO_VERSION}.linux-amd64.tar.gz
ENV PATH="/usr/local/go/bin:$PATH"
# Create app directories
RUN mkdir -p /app/code /app/pkg /app/data
WORKDIR /app/code
# Download and build mautrix-signal
RUN git clone --branch v0.2512.0 https://github.com/mautrix/signal.git . \
&& go build -o /app/pkg/mautrix-signal ./cmd/mautrix-signal
# Copy startup script
COPY start.sh /app/pkg/
# Set volumes and environment
VOLUME /app/data
ENV UID=1337 GID=1337
# Add health check endpoint - check if the appservice port is responding
HEALTHCHECK --interval=60s --timeout=10s --start-period=30s --retries=3 \
CMD nc -z localhost 29328 || exit 1
CMD ["/app/pkg/start.sh"]