FROM python:3.10-alpine as base FROM base as builder RUN apk update && apk add cmake olm make alpine-sdk RUN mkdir /install COPY requirements.txt /requirements.txt RUN pip install --prefix=/install -r /requirements.txt FROM base RUN apk update && apk add olm COPY --from=builder /install /usr/local WORKDIR /app STOPSIGNAL SIGINT RUN mkdir /data COPY matrix-invitation-dealer /app/matrix-invitation-dealer COPY sql /app/sql COPY docker.env /app/.env CMD ["python3", "-m", "matrix-invitation-dealer"]