You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
655 B
Docker

FROM rust:1.56-alpine as builder
ARG GIT="https://gitlab.com/Mageas/matrix_rss"
ARG GIT_BRANCH="master"
WORKDIR /usr/src/app
RUN apk update && \
apk upgrade && \
apk add --no-cache musl-dev clang-dev openssl-dev git make cmake g++
RUN git clone "$GIT" --branch "$GIT_BRANCH" .
RUN RUSTFLAGS="-Ctarget-feature=-crt-static" cargo install --path .
FROM alpine:3.15.0
RUN apk update && \
apk upgrade && \
apk add --no-cache libstdc++ su-exec
COPY --from=builder /usr/local/cargo/bin/matrix_rss /app/matrix_rss
RUN chmod u+x /app/matrix_rss
COPY entrypoint.sh /entrypoint.sh
RUN chmod u+x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]