mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-28 09:31:56 +00:00
40 lines
888 B
Docker
40 lines
888 B
Docker
FROM debian:stretch
|
|
|
|
# We switched here to debian, as there seems no ZSH 5.3 in ubuntu.
|
|
|
|
RUN \
|
|
apt-get update && \
|
|
echo 'golang-go golang-go/dashboard boolean false' | debconf-set-selections && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
curl \
|
|
git \
|
|
zsh=5.3.1-4+b2 \
|
|
mercurial \
|
|
subversion \
|
|
golang \
|
|
jq \
|
|
nodejs \
|
|
ruby \
|
|
python \
|
|
python-virtualenv \
|
|
sudo \
|
|
locales
|
|
|
|
RUN adduser --shell /bin/zsh --gecos 'fred' --disabled-password fred
|
|
# Locale generation is different in debian. We need to enable en_US
|
|
# locale and then regenerate locales.
|
|
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
|
|
RUN locale-gen "en_US.UTF-8"
|
|
|
|
COPY docker/fred-sudoers /etc/sudoers.d/fred
|
|
|
|
USER fred
|
|
WORKDIR /home/fred
|
|
ENV LANG=en_US.UTF-8
|
|
ENV TERM=xterm-256color
|
|
ENV DEFAULT_USER=fred
|
|
ENV POWERLEVEL9K_ALWAYS_SHOW_CONTEXT=true
|
|
|
|
RUN touch .zshrc
|
|
|
|
CMD ["/bin/zsh", "-l"]
|