Samuel Philipp
9a3e6e5eb5
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
21 lines
644 B
Docker
21 lines
644 B
Docker
FROM rust:alpine AS builder
|
|
|
|
RUN apk add python3 musl-dev pkgconfig openssl-dev make git
|
|
|
|
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
|
|
|
WORKDIR /opt/synapse-compressor/
|
|
|
|
RUN git clone https://github.com/matrix-org/rust-synapse-compress-state.git . && \
|
|
cargo build
|
|
|
|
WORKDIR /opt/synapse-compressor/synapse_auto_compressor/
|
|
|
|
RUN cargo build
|
|
|
|
FROM alpine
|
|
|
|
RUN apk add --no-cache libgcc postgresql-client
|
|
|
|
COPY --from=builder /opt/synapse-compressor/target/debug/synapse_compress_state /usr/local/bin/synapse_compress_state
|
|
COPY --from=builder /opt/synapse-compressor/target/debug/synapse_auto_compressor /usr/local/bin/synapse_auto_compressor
|