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.

51 lines
1.0 KiB

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. libxapian-dev \
  28. libgmime-3.0-dev
  29. RUN sed -i 's/# deb-src/deb-src' /etc/apt/sources.list \
  30. && apt update -y \
  31. && apt build-dep -y emacs
  32. WORKDIR /usr/src/emacs
  33. RUN ./autogen.sh \
  34. && ./configure --with-native-compilation --with-mailutils
  35. && make -j 2
  36. && make install
  37. WORKDIR /usr/src/mu
  38. RUN ./autogen.sh \
  39. && ./configure
  40. && make
  41. && make install
  42. ENTRYPOINT [ "emacs" ]