dockerfiles/mutt/Dockerfile

50 lines
1.2 KiB
Docker
Raw Normal View History

2015-07-20 00:54:30 +02:00
# Run Mutt from a container
# docker run -it \
# -v /etc/localtime:/etc/localtime \
# -e GMAIL -e GMAIL_NAME \ # pass env variables to config
# -e GMAIL_PASS -e GMAIL_FROM \
# -v $HOME/.gnupg:/home/user/.gnupg \ # so you can encrypt ;)
# --name mutt \
# jess/mutt
#
FROM debian:sid
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 \
libsasl2-modules \
lynx \
mutt-dbg \
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 $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"]