My base Docker image when I want to develop inside a Container with VSCode (zsh & spaceship prompt)
358
1 │ # Pull Ubuntu LTS image.
2 │ FROM ubuntu:20.04
3 │
4 │ # Set up the time as Europe/Paris
5 │ ENV TZ=Europe/Paris
6 │ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
7 │ && echo $TZ > /etc/timezone
8 │
9 │ ENV SRC_DIR=/root/home/
10 │ WORKDIR $SRC_DIR
11 │
12 │ # Install zsh as the default shell within the container.
13 │ RUN apt update -y && apt install -y --no-install-recommends git zsh wget bash-completion && chsh -s /usr/bin/zsh
14 │
15 │ # Install the Spaceship Prompt.
16 │ RUN sh -c "$(wget -O- --no-check-certificate https://github.com/deluan/zsh-in-docker/releases/download/v1.1.1/zsh-in-docker.sh)" --
17 │ -t https://github.com/denysdovhan/spaceship-prompt
18 │ -a 'SPACESHIP_PROMPT_ADD_NEWLINE="false"'
19 │ -a 'SPACESHIP_PROMPT_SEPARATE_LINE="false"'
20 │ -p git
21 │ -p sudo
22 │ -p https://github.com/zsh-users/zsh-autosuggestions
23 │ -p https://github.com/zsh-users/zsh-completions
24 │
25 │ # A ajouter dans .zshrc car on vient du shell bash.
26 │ RUN echo "export PATH=$HOME/bin:/usr/local/bin:$PATH" > new_file; cat ~/.zshrc >> new_file && mv -f new_file ~/.zshrc
Content type
Image
Digest
Size
170.2 MB
Last updated
almost 6 years ago
docker pull shostarson/base-dev-env:v1