Dockerfile 763 B

123456789101112131415161718192021222324
  1. FROM dock.mau.dev/maubot/maubot:latest
  2. ## With openai for chatGPT:
  3. RUN apk upgrade
  4. RUN apk upgrade --available
  5. RUN pip install --upgrade pip
  6. RUN pip install --upgrade setuptools
  7. RUN apk add --no-cache \
  8. --virtual=.build-dependencies \
  9. g++ file binutils \
  10. musl-dev python3-dev cython && \
  11. apk add libstdc++ openblas && \
  12. ln -s locale.h /usr/include/xlocale.h && \
  13. pip install -I numpy==1.24.1
  14. # rm -r /root/.cache && \
  15. # find /usr/lib/python3.*/ -name 'tests' -exec rm -r '{}' + && \
  16. # find /usr/lib/python3.*/site-packages/ -name '*.so' -print -exec sh -c 'file "{}" | grep -q "not stripped" && strip -s "{}"' \; && \
  17. # rm /usr/include/xlocale.h && \
  18. # apk del .build-dependencies
  19. RUN pip install -I openai