dockerfiles/mutt/Dockerfile

37 lines
916 B
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
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 \
&& git clone https://github.com/altercation/vim-colors-solarized $HOME/.vim/bundle/vim-colors-solarized \
&& cp $HOME/.vim/vimrc.txt $HOME/.vimrc
2014-12-05 08:09:20 +01:00
ENV LANG C.UTF-8
COPY entrypoint.sh /entrypoint.sh
COPY .mutt $HOME/.mutt
2015-01-07 19:59:35 +01:00
ENTRYPOINT ["/entrypoint.sh"]
2014-12-05 08:09:20 +01:00
CMD ["mutt-patched", "-F", "~/.mutt/muttrc"]