Skip to content

Commit 14e5372

Browse files
committed
chore: update dockerfile
1 parent 58d8214 commit 14e5372

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.devcontainer/Dockerfile

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,29 @@ RUN /bin/sh -c echo '[multilib]' >> /etc/pacman.conf && \
1919
cd yay && \
2020
sudo -u aur makepkg --noconfirm -si
2121

22-
RUN sudo -u aur yay -S --needed --noconfirm zsh easy-zsh-config
23-
24-
RUN sed -i -r "s/^(PATH_OF_THE_THEME=).*/\1\/usr\/share\/oh-my-posh\/themes\/stelbent\.minimal\.omp\.json/" /etc/skel/.zshrc
25-
26-
RUN sudo -u aur yay -S --needed --noconfirm python python-pip python-setuptools python-pipenv python-pipx nodejs npm npm-check-updates
27-
28-
RUN echo '' >> ~/.zshrc \
29-
&& echo 'if [ -d "$HOME/.local/bin" ] ; then' >> ~/.zshrc \
30-
&& echo ' PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc \
31-
&& echo 'fi' >> ~/.zshrc
32-
22+
# install yay
3323
RUN sudo -u aur yay --cleanafter --removemake --save && \
3424
pacman -Qtdq | xargs -r pacman --noconfirm -Rcns && \
3525
rm -rf /home/aur/.cache && \
3626
rm -rf /build
3727

28+
# configure zsh
29+
RUN sudo -u aur yay -S --needed --noconfirm zsh easy-zsh-config
30+
31+
RUN echo '' >> /etc/skel/.zshrc \
32+
&& sed -i -r "s/^(PATH_OF_THE_THEME=).*/\1\/usr\/share\/oh-my-posh\/themes\/stelbent\.minimal\.omp\.json/" /etc/skel/.zshrc
33+
34+
RUN sudo -u aur yay -S --needed --noconfirm python python-pip python-setuptools python-pipenv python-pipx nodejs npm npm-check-updates
35+
36+
# configure python
3837
RUN sudo -u aur yay -S --needed --noconfirm python38 python39 python311
3938

39+
RUN echo '' >> /etc/skel/.zshrc \
40+
&& echo 'if [ -d "$HOME/.local/bin" ] ; then' >> /etc/skel/.zshrc \
41+
&& echo ' PATH="$HOME/.local/bin:$PATH"' >> /etc/skel/.zshrc \
42+
&& echo 'fi' >> /etc/skel/.zshrc
43+
44+
# create vscode user
4045
RUN useradd -l -u 33333 -G wheel -md /home/vscode -s /bin/zsh -p vscode vscode
4146
USER vscode
4247

0 commit comments

Comments
 (0)