-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
26 lines (20 loc) · 873 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.11-alpine
# Install build dependencies & runtime dependencies
RUN apk update --no-interactive
RUN apk add --no-interactive --no-cache imagemagick ffmpeg build-base libffi-dev openssl-dev git olm olm-dev
# Install Python dependencies
RUN pip --no-input --no-color --disable-pip-version-check install --upgrade pip
RUN pip --no-input --no-color install --upgrade setuptools wheel
RUN pip --no-input --no-color install --upgrade build 'matrix-nio[e2e]' click httpx
# Install package dependencies
RUN mkdir -p /niobot/wheels
COPY .git /niobot/.git
# ^ Needed for versioning
COPY src /niobot/src
COPY pyproject.toml /niobot
COPY requirements.txt /niobot
# Build package
RUN python -m build -w -o /niobot/wheels /niobot
# Install package
RUN pip --no-input --no-color install --compile --no-warn-script-location /niobot/wheels/*.whl
CMD ["niocli", "version"]