pull/1/head
Benedikt Kristinsson 4 years ago
parent 3270cf4fb6
commit 2dd3b345d5
  1. 17
      alpine/Dockerfile
  2. 1
      git/Dockerfile

@ -0,0 +1,17 @@
FROM alpine:3.8
RUN addgroup -S emacs && \
adduser -S -G emacs emacs && \
mkdir /outside && \
chown -R emacs:emacs /outside && \
chown -R emacs:emacs /home/emacs
WORKDIR /outside
RUN apk add --no-cache ca-certificates emacs
COPY ./.emacs /home/emacs/.emacs
RUN chown emacs:emacs /home/emacs/.emacs
USER emacs
#ADD --chown=emacs:emacs ./.emacs /home/emacs/.emacs
RUN emacs -batch -l /home/emacs/.emacs
ENTRYPOINT ["emacs"]

@ -14,4 +14,5 @@ RUN ./autogen.sh && \
make install
WORKDIR /emacs
RUN rm -rf /build
COPY ./.emacs /root/.emacs
ENTRYPOINT ["/emacs/bin/emacs"]
Loading…
Cancel
Save