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: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
2015-07-20 00:54:30 +02:00
#
FROM alpine:latest
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
2014-12-05 08:09:20 +01:00
RUN addgroup -g 1000 user \
&& adduser -D -h /home/user -G user -u 1000 user
2014-12-05 08:09:20 +01:00
RUN apk --no-cache add \
ca-certificates \
elinks \
git \
gnupg1 \
lynx \
mutt \
mutt-doc \
vim \
--repository https://dl-3.alpinelinux.org/alpine/edge/main
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 --depth 1 https://github.com/jessfraz/.vim.git $HOME/.vim \
&& git clone --depth 1 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", "-F", "~/.mutt/muttrc"]