Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM alpine:3.13
  2. ARG TARGETARCH=amd64
  3. RUN apk add --no-cache \
  4. python3 py3-pip py3-setuptools py3-wheel \
  5. py3-virtualenv \
  6. py3-pillow \
  7. py3-aiohttp \
  8. py3-magic \
  9. py3-ruamel.yaml \
  10. py3-commonmark \
  11. # Other dependencies
  12. ca-certificates \
  13. su-exec \
  14. # encryption
  15. olm-dev \
  16. py3-cffi \
  17. py3-pycryptodome \
  18. py3-unpaddedbase64 \
  19. py3-future \
  20. bash \
  21. curl \
  22. jq \
  23. yq
  24. COPY requirements.txt /opt/mautrix-instagram/requirements.txt
  25. COPY optional-requirements.txt /opt/mautrix-instagram/optional-requirements.txt
  26. WORKDIR /opt/mautrix-instagram
  27. RUN apk add --virtual .build-deps python3-dev libffi-dev build-base \
  28. && pip3 install -r requirements.txt -r optional-requirements.txt \
  29. && apk del .build-deps
  30. COPY . /opt/mautrix-instagram
  31. RUN apk add git && pip3 install .[all] && apk del git \
  32. # This doesn't make the image smaller, but it's needed so that the `version` command works properly
  33. && cp mautrix_instagram/example-config.yaml . && rm -rf mautrix_instagram
  34. VOLUME /data
  35. CMD ["/opt/mautrix-instagram/docker-run.sh"]