dockerfiles/mutt/Dockerfile
Jess Frazelle 6e563ac528
update chrome and mutt
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
2016-04-05 10:12:37 -07:00

50 lines
1.1 KiB
Docker

# Run Mutt from a container
# docker run -it \
# -v /etc/localtime:/etc/localtime:ro \
# -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 alpine:latest
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN addgroup -g 1000 user \
&& adduser -D -h /home/user -G user -u 1000 user
RUN apk --update add \
ca-certificates \
elinks \
git \
gnupg \
lynx \
mutt \
mutt-doc \
vim \
&& rm -rf /var/cache/apk/*
# a browser is necessary!
ENV BROWSER lynx
USER user
ENV HOME /home/user
ENV TERM xterm
RUN mkdir -p $HOME/.mutt/cache/headers $HOME/.mutt/cache/bodies \
&& 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
ENV LANG C.UTF-8
COPY entrypoint.sh /entrypoint.sh
COPY .mutt $HOME/.mutt
ENTRYPOINT ["/entrypoint.sh"]
CMD ["mutt", "-F", "~/.mutt/muttrc"]