diff --git a/docker/Dockerfile b/docker/Dockerfile index ecdfc65..3585e46 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,19 +1,15 @@ FROM ubuntu:20.04 +# required to silently install libxml2-dev +ENV DEBIAN_FRONTEND=noninteractive + RUN apt-get update \ - && apt-get install -y --no-install-recommends make tar gzip git curl ca-certificates gcc libgnutls28-dev libjansson-dev libncurses-dev \ - && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libxml2-dev \ - && curl -O https://ftp.gnu.org/pub/gnu/emacs/emacs-27.1.tar.gz \ - && tar -xzf emacs-27.1.tar.gz \ - && cd emacs-27.1 \ - && JSON_CFLAGS='-I/usr/include' JSON_LIBS='-ljansson' \ - LIBGNUTLS_CFLAGS='-I/usr/include' LIBGNUTLS_LIBS='-lgnutls' \ - LIBXML2_CFLAGS='-I/usr/include/libxml2' LIBXML2_LIBS='-lxml2' \ - ./configure --without-makeinfo --with-modules \ - && make install \ - && apt-get remove -y gcc perl \ - && apt-get autoremove -y \ - && rm -rf /emacs-27.1.tar.gz /emacs-27.1 /var/lib/apt/lists/* /root/.cache/* + && apt-get -y --no-install-recommends install software-properties-common \ + && apt-add-repository -y ppa:kelleyk/emacs \ + && apt-get -y --no-install-recommends install emacs27-nox \ + && apt-get -y purge software-properties-common \ + && apt-get -y autoremove \ + && rm -rf /var/lib/apt/lists/* /root/.cache/* ENV WORKSPACE "/workspace" ENV ELISP_PATH "${WORKSPACE}/pkg"