generated from Templates/Baseline
OCram85
e316a96190
#### 📖 Summary <!-- Provide a summary of your changes. Describe the why and not how. --> #### 📑 Test Plan > 💡 Select your test plan for the code changes. - [x] Tested via Drone.io pipeline - [ ] Custom test - [ ] No test plan ##### Details / Justification <!-- Add your test details or justification for missing tests here. --> #### 📚 Additional Notes <!-- A place for additional detail notes. --> Co-authored-by: OCram85 <marco.blessing@googlemail.com> Reviewed-on: CodeServer/Container#7
27 lines
1.0 KiB
Docker
27 lines
1.0 KiB
Docker
FROM quay.io/linuxserver.io/code-server:4.8.3
|
|
|
|
RUN \
|
|
echo "**** install starship prompt ****" && \
|
|
curl -sS https://starship.rs/install.sh | sh -s -- -f && \
|
|
echo "eval \"\$(starship init bash)\"" >> /etc/bash.bashrc
|
|
|
|
ENV STARSHIP_CONFIG=/etc/starship.toml
|
|
|
|
COPY starship.toml /etc/starship.toml
|
|
|
|
ADD gitconfig-system /etc/gitconfig
|
|
RUN \
|
|
echo "**** setup git ****" && \
|
|
# using prepared systemwide config file instead.
|
|
#git config --system credential.helper store && \
|
|
echo 'source /usr/share/bash-completion/completions/git' >> /etc/bash.bashrc
|
|
|
|
ADD install-devruntime /usr/bin/
|
|
ADD install-devruntime-completion /etc/bash_completion.d/
|
|
RUN \
|
|
chmod +x /usr/bin/install-devruntime && \
|
|
chmod +x /etc/bash_completion.d/install-devruntime-completion && \
|
|
echo 'source /etc/bash_completion.d/install-devruntime-completion' >> /etc/bash.bashrc && \
|
|
touch "$HOME/enable_motd" && \
|
|
echo "if [[ -e \"$HOME/enable_motd\" ]]; then echo -e \"Use \\e[32m'install-devruntime'\\e[0m to install missing runtimes like dotnet or NodeJs.\"; fi" >> /etc/bash.bashrc
|