dockerfiles/mutt/Dockerfile

38 lines
903 B
Docker
Raw Normal View History

2015-01-07 19:59:35 +01:00
FROM debian:stable
MAINTAINER Jessica Frazelle <jess@docker.com>
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 \
lynx \
mutt-patched \
vim-nox \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
2014-12-05 22:10:51 +01:00
2015-01-07 19:59:35 +01:00
# a browser is necessary!
2014-12-05 08:09:20 +01:00
ENV BROWSER lynx
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"]