synapse-compress-state-docker/Dockerfile
Samuel Philipp 67f9723f0e
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Update 'Dockerfile'
2022-09-24 23:46:54 +00:00

21 lines
626 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
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