dockerfiles/mutt/Dockerfile

37 lines
1.1 KiB
Docker
Raw Normal View History

2015-01-07 19:59:35 +01:00
FROM debian:stable
2014-12-05 08:09:20 +01:00
RUN groupadd -g 1000 user \
&& useradd --create-home -d /home/user -g user -u 1000 user
2015-01-07 19:59:35 +01:00
RUN apt-get update && apt-get install -y ca-certificates git mutt-patched
2014-12-05 22:10:51 +01:00
2015-01-07 19:59:35 +01:00
# a browser is necessary!
RUN apt-get update && apt-get install -y lynx
2014-12-05 08:09:20 +01:00
ENV BROWSER lynx
2015-01-07 19:59:35 +01:00
# my preferred editor :) (see also muttrc)
RUN apt-get update && apt-get install -y vim-nox
2014-12-05 08:09:20 +01:00
2015-01-07 19:59:35 +01:00
USER user
ENV HOME /home/user
ENV TERM xterm-256color
2014-12-05 08:09:20 +01:00
RUN mkdir -p $HOME/.mutt/cache/headers $HOME/.mutt/cache/bodies \
2015-01-07 19:59:35 +01:00
&& touch $HOME/.mutt/certificates
# vim settings
RUN git clone https://github.com/jfrazelle/.vim.git $HOME/.vim \
2014-12-05 08:09:20 +01:00
&& git clone https://github.com/altercation/vim-colors-solarized $HOME/.vim/bundle/vim-colors-solarized \
&& cp $HOME/.vim/vimrc.txt $HOME/.vimrc
ENV LANG C.UTF-8
2015-01-07 19:59:35 +01:00
COPY entrypoint.sh /entrypoint.sh
COPY .muttrc $HOME/.muttrc
COPY .mailcap $HOME/.mailcap
COPY mutt-colors-solarized-dark-16.muttrc $HOME/mutt-colors-solarized-dark-16.muttrc
COPY mutt-patch-highlighting.muttrc $HOME/mutt-patch-highlighting.muttrc
ENTRYPOINT ["/entrypoint.sh"]
2014-12-05 08:09:20 +01:00
CMD ["mutt-patched"]