debian-here/Dockerfile

40 lines
1.4 KiB
Docker
Raw Permalink Normal View History

2018-05-24 18:03:07 +00:00
FROM debian:unstable
USER root
2018-05-24 18:34:26 +00:00
RUN export DEBIAN_FRONTEND=noninteractive &&\
apt-get update &&\
apt-get install -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen &&\
dpkg-reconfigure --frontend=noninteractive locales &&\
update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
2018-05-24 18:03:07 +00:00
RUN export DEBIAN_FRONTEND=noninteractive &&\
apt-get update &&\
2018-05-24 19:57:26 +00:00
apt-get install -y \
build-essential \
procps \
zsh \
git \
curl \
vim \
2018-05-24 18:03:07 +00:00
autojump &&\
rm -rf /var/lib/apt/lists/* &&\
ln -sf /bin/bash /bin/sh
COPY . /
RUN git clone https://git.strongds.hu/mrtoth/zshrc.git ~/zshrc &&\
2018-05-24 18:03:07 +00:00
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" &&\
ln -sf ~/zshrc/rc ~/.zshrc &&\
echo 'export PROMPT="${PROMPT}(${fg[red]}debian${reset_color}) "' >> ~/zshrc/rc &&\
2018-05-24 18:11:41 +00:00
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting &&\
chsh -s /bin/zsh
2018-05-24 18:15:10 +00:00
RUN git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf &&\
~/.fzf/install
CMD ["/bin/zsh"]