|
|
@@ -75,8 +75,8 @@ RUN BUILD_TIME=$(date -u +%Y-%m-%dT%H:%M:%SZ) && \ |
|
|
CGO_LDFLAGS="-L/build" \ |
|
|
CGO_LDFLAGS="-L/build" \ |
|
|
go build \ |
|
|
go build \ |
|
|
-ldflags "-X main.Tag=${BUILD_VERSION} -X main.Commit=${BUILD_COMMIT} -X main.BuildTime=${BUILD_TIME}" \ |
|
|
-ldflags "-X main.Tag=${BUILD_VERSION} -X main.Commit=${BUILD_COMMIT} -X main.BuildTime=${BUILD_TIME}" \ |
|
|
-o /build/mautrix-imessage-v2 \ |
|
|
|
|
|
./cmd/mautrix-imessage/ |
|
|
|
|
|
|
|
|
-o /build/matrix-rustpush \ |
|
|
|
|
|
./cmd/matrix-rustpush/ |
|
|
|
|
|
|
|
|
# ── Stage 2: runtime ───────────────────────────────────────────────────────── |
|
|
# ── Stage 2: runtime ───────────────────────────────────────────────────────── |
|
|
FROM ubuntu:24.04 |
|
|
FROM ubuntu:24.04 |
|
|
@@ -88,8 +88,9 @@ ENV DEBIAN_FRONTEND=noninteractive |
|
|
# libheif1 — HEIC/HEIF conversion (linked at compile time even when disabled) |
|
|
# libheif1 — HEIC/HEIF conversion (linked at compile time even when disabled) |
|
|
# libolm3 — Matrix OLM encryption (mautrix bridgev2 framework) |
|
|
# libolm3 — Matrix OLM encryption (mautrix bridgev2 framework) |
|
|
# libssl3 — OpenSSL (rustpush openssl crate dynamic link) |
|
|
# libssl3 — OpenSSL (rustpush openssl crate dynamic link) |
|
|
|
|
|
# ffmpeg — video transcoding |
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \ |
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \ |
|
|
libunicorn2 libheif1 libolm3 libssl3 \ |
|
|
|
|
|
|
|
|
libunicorn2 libheif1 libolm3 libssl3 ffmpeg \ |
|
|
ca-certificates openssl curl \ |
|
|
ca-certificates openssl curl \ |
|
|
&& curl -fsSL 'https://www.apple.com/appleca/AppleIncRootCertificate.cer' \ |
|
|
&& curl -fsSL 'https://www.apple.com/appleca/AppleIncRootCertificate.cer' \ |
|
|
-o /tmp/AppleRootCA.cer \ |
|
|
-o /tmp/AppleRootCA.cer \ |
|
|
@@ -99,10 +100,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ |
|
|
&& rm /tmp/AppleRootCA.cer \ |
|
|
&& rm /tmp/AppleRootCA.cer \ |
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
&& rm -rf /var/lib/apt/lists/* |
|
|
|
|
|
|
|
|
COPY --from=builder /build/mautrix-imessage-v2 /usr/local/bin/mautrix-imessage-v2 |
|
|
|
|
|
|
|
|
COPY --from=builder /build/matrix-rustpush /usr/local/bin/matrix-rustpush |
|
|
|
|
|
|
|
|
WORKDIR /data |
|
|
WORKDIR /data |
|
|
VOLUME /data |
|
|
VOLUME /data |
|
|
EXPOSE 29332 |
|
|
EXPOSE 29332 |
|
|
|
|
|
|
|
|
ENTRYPOINT ["mautrix-imessage-v2", "-c", "/data/config.yaml"] |
|
|
|
|
|
|
|
|
ENTRYPOINT ["matrix-rustpush", "-c", "/data/config.yaml"] |