matrix-invitation-dealer/Dockerfile

31 lines
514 B
Text
Raw Normal View History

2023-10-13 20:42:44 +02:00
FROM python:3.10-alpine as base
FROM base as builder
2023-10-13 08:51:48 +02:00
RUN apk update && apk add cmake olm make alpine-sdk
2023-10-13 20:42:44 +02:00
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
2023-10-13 08:51:48 +02:00
WORKDIR /app
2023-10-13 20:42:44 +02:00
STOPSIGNAL SIGINT
2023-10-13 08:51:48 +02:00
RUN mkdir /data
COPY matrix-invitation-dealer /app/matrix-invitation-dealer
2023-10-13 20:42:44 +02:00
COPY sql /app/sql
2023-10-13 08:51:48 +02:00
COPY docker.env /app/.env
CMD ["python3", "-m", "matrix-invitation-dealer"]