-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (35 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Example dockerfile that shows the installation and setup
# process from a fresh ubuntu image
FROM ubuntu:latest
USER root
WORKDIR /root
# Prompt avoidance
ENV DEBIAN_FRONTEND=noninteractive
ENV TERM=xterm-256color
# Install the necessary packages
RUN apt-get update -y && apt-get install -y \
git \
zsh \
tmux \
wget \
vim \
# Cleanup
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# Default zsh shell
RUN chsh -s $(which zsh)
# Install oh-my-zsh
RUN sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
# Install powerlevel10k and zsh-autocomplete
RUN git clone --depth=1 https://github.com/marlonrichert/zsh-autocomplete.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autocomplete
RUN git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# Copy my p10k configuration to skip the configuration wizard
COPY .p10k.zsh /root/.p10k.zsh
# Copy other configurations, see the README if you want to do this yourself manually
COPY .zshrc /root/.zshrc
COPY .tmux.conf /root/.tmux.conf
COPY aliases.zsh /root/.oh-my-zsh/custom/aliases.zsh
RUN mkdir -p log
ENTRYPOINT [ "/bin/zsh" ]
CMD [ "-l" ]