This commit is contained in:
Jessica Frazelle
2015-01-07 10:59:35 -08:00
parent a53f86be70
commit c0c28e989b
3 changed files with 32 additions and 33 deletions

View File

@@ -1,31 +1,36 @@
FROM debian:jessie
FROM debian:stable
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
RUN apt-get update && apt-get install -y ca-certificates git mutt-patched
# a browser is necessary!
RUN apt-get update && apt-get install -y lynx
ENV BROWSER lynx
ENV TERM xterm-256color
ENV HOME /home/user
# my preferred editor :) (see also muttrc)
RUN apt-get update && apt-get install -y vim-nox
USER user
ENV HOME /home/user
ENV TERM xterm-256color
RUN mkdir -p $HOME/.mutt/cache/headers $HOME/.mutt/cache/bodies \
&& touch $HOME/.mutt/certificates \
&& git clone https://github.com/jfrazelle/.vim.git $HOME/.vim \
&& 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
ENV LANG C.UTF-8
COPY . $HOME/
COPY entrypoint.sh /entrypoint.sh
COPY .muttrc $HOME/.muttrc
COPY .mailcap $HOME/.mailcap
COPY mutt-colors-solarized-dark-16.muttrc $HOME/mutt-colors-solarized-dark-16.muttrc
COPY mutt-patch-highlighting.muttrc $HOME/mutt-patch-highlighting.muttrc
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/home/user/entrypoint.sh"]
CMD ["mutt-patched"]