2020-08-23 15:11:48 -07:00
|
|
|
FROM ubuntu:20.04
|
|
|
|
|
2020-11-23 20:32:13 -08:00
|
|
|
# required to silently install libxml2-dev
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2020-08-23 15:11:48 -07:00
|
|
|
RUN apt-get update \
|
2020-11-23 20:32:13 -08:00
|
|
|
&& apt-get -y --no-install-recommends install software-properties-common \
|
|
|
|
&& apt-add-repository -y ppa:kelleyk/emacs \
|
2020-12-20 21:45:57 -08:00
|
|
|
&& apt-get -y --no-install-recommends install emacs27 \
|
2020-11-23 20:32:13 -08:00
|
|
|
&& apt-get -y purge software-properties-common \
|
|
|
|
&& apt-get -y autoremove \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /root/.cache/*
|
2020-02-22 11:06:20 -08:00
|
|
|
|
|
|
|
ENV WORKSPACE "/workspace"
|
2020-05-03 11:43:20 -07:00
|
|
|
ENV ELISP_PATH "${WORKSPACE}/pkg"
|
2020-02-22 11:06:20 -08:00
|
|
|
|
2020-08-23 15:11:48 -07:00
|
|
|
RUN useradd emacser -d $WORKSPACE \
|
|
|
|
&& mkdir -p $ELISP_PATH \
|
|
|
|
&& chown -R emacser $WORKSPACE
|
2020-02-22 11:06:20 -08:00
|
|
|
USER emacser:emacser
|
|
|
|
|
|
|
|
COPY _requirements.el $WORKSPACE
|
2020-03-07 23:12:00 -08:00
|
|
|
RUN emacs --script $WORKSPACE/_requirements.el
|
2020-02-22 11:06:20 -08:00
|
|
|
|
2020-02-23 09:43:56 -08:00
|
|
|
COPY --chown=emacser:emacser docker/.emacs $WORKSPACE
|
2020-05-03 11:43:20 -07:00
|
|
|
COPY --chown=emacser:emacser pkg $ELISP_PATH
|
2020-03-01 16:59:01 -08:00
|
|
|
COPY --chown=emacser:emacser melpazoid/melpazoid.el $ELISP_PATH
|
2020-02-22 11:06:20 -08:00
|
|
|
|
2020-04-11 21:39:44 -07:00
|
|
|
ARG PACKAGE_MAIN
|
|
|
|
ENV PACKAGE_MAIN "${PACKAGE_MAIN}"
|
2020-02-22 11:06:20 -08:00
|
|
|
|
|
|
|
WORKDIR $ELISP_PATH
|
2020-08-23 15:11:48 -07:00
|
|
|
CMD ["emacs", "--script", "melpazoid.el"]
|