I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.1 KiB

4 years ago
4 years ago
4 years ago
  1. FROM ubuntu:20.04
  2. LABEL MAINTAINER "chris@chrishayward.xyz"
  3. ENV CC=gcc-10
  4. ENV NATIVE_FULL_AOT=1
  5. ENV DEBIAN_FRONTEND=noninteractive
  6. WORKDIR /usr/src
  7. RUN apt update -y \
  8. && install -y git \
  9. && git clone https://github.com/djcb/mu.git \
  10. && git clone https://git.savannah.gnu.org/git/emacs.git
  11. RUN apt install -y \
  12. apt-transport-https \
  13. ca-certificates \
  14. curl \
  15. gnupg-agent \
  16. software-properties-common
  17. RUN add-apt-repository ppa:ubuntu-toolchain-r/ppa \
  18. && apt update -y \
  19. && apt install -y \
  20. gcc-10 \
  21. libgccjit0 \
  22. libgccjit-10-dev
  23. RUN apt install -y \
  24. libjansson4 \
  25. libjansson-dev
  26. RUN apt install -y \
  27. isync
  28. libxapian-dev \
  29. libgmime-3.0-dev
  30. RUN sed -i 's/# deb-src/deb-src' /etc/apt/sources.list \
  31. && apt update -y \
  32. && apt build-dep -y emacs
  33. WORKDIR /usr/src/emacs
  34. RUN ./autogen.sh \
  35. && ./configure --with-native-compilation --with-mailutils
  36. && make -j 2
  37. && make install
  38. WORKDIR /usr/src/mu
  39. RUN ./autogen.sh \
  40. && ./configure
  41. && make
  42. && make install
  43. WORKDIR /usr/src/app
  44. ENTRYPOINT [ "emacs" ]