2015-07-20 00:54:30 +02:00
|
|
|
# Run Mutt from a container
|
|
|
|
|
|
|
|
# docker run -it \
|
2015-09-12 00:08:20 +02:00
|
|
|
# -v /etc/localtime:/etc/localtime:ro \
|
2015-07-25 01:36:17 +02:00
|
|
|
# -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
|
|
|
#
|
2016-04-12 20:04:29 +02:00
|
|
|
FROM alpine:edge
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2014-12-05 08:09:20 +01:00
|
|
|
|
2016-04-05 19:12:37 +02:00
|
|
|
RUN addgroup -g 1000 user \
|
|
|
|
&& adduser -D -h /home/user -G user -u 1000 user
|
2014-12-05 08:09:20 +01:00
|
|
|
|
2016-06-06 05:40:20 +02:00
|
|
|
RUN apk --no-cache add \
|
2015-06-05 19:24:11 +02:00
|
|
|
ca-certificates \
|
2015-09-16 05:49:48 +02:00
|
|
|
elinks \
|
2015-06-05 19:24:11 +02:00
|
|
|
git \
|
2016-04-12 20:04:29 +02:00
|
|
|
gnupg1 \
|
2015-06-07 02:48:44 +02:00
|
|
|
lynx \
|
2016-04-05 19:12:37 +02:00
|
|
|
mutt \
|
|
|
|
mutt-doc \
|
2016-06-06 05:40:20 +02:00
|
|
|
vim
|
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
|
2016-04-12 20:04:29 +02:00
|
|
|
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
|
2016-12-28 02:04:58 +01:00
|
|
|
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 \
|
2015-06-07 02:53:25 +02:00
|
|
|
&& cp $HOME/.vim/vimrc $HOME/.vimrc
|
2014-12-05 08:09:20 +01:00
|
|
|
|
|
|
|
ENV LANG C.UTF-8
|
|
|
|
|
2015-06-05 19:24:11 +02:00
|
|
|
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
|
|
|
|
2016-04-05 19:12:37 +02:00
|
|
|
CMD ["mutt", "-F", "~/.mutt/muttrc"]
|