add AUR vscode to arch toolbox
This commit is contained in:
@@ -85,8 +85,6 @@ RUN pacman -S --noconfirm \
|
|||||||
pandoc \
|
pandoc \
|
||||||
# Comprehensive LaTeX distribution for high-quality typesetting of documents.
|
# Comprehensive LaTeX distribution for high-quality typesetting of documents.
|
||||||
texlive-latex texlive-latexextra texlive-latexrecommended texlive-binextra texlive-fontsrecommended texlive-fontsextra \
|
texlive-latex texlive-latexextra texlive-latexrecommended texlive-binextra texlive-fontsrecommended texlive-fontsextra \
|
||||||
# Visual Studio Code editor
|
|
||||||
code \
|
|
||||||
# Python static type checker and code formatter.
|
# Python static type checker and code formatter.
|
||||||
ruff \
|
ruff \
|
||||||
# Generate strong passwords.
|
# Generate strong passwords.
|
||||||
@@ -129,6 +127,26 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2
|
|||||||
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/youtube-dlp && \
|
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/youtube-dlp && \
|
||||||
chmod a+rx /usr/local/bin/youtube-dlp
|
chmod a+rx /usr/local/bin/youtube-dlp
|
||||||
|
|
||||||
|
#################
|
||||||
|
##### AUR #####
|
||||||
|
#################
|
||||||
|
|
||||||
|
# Create build user and switch to build home dir
|
||||||
|
RUN useradd -m build
|
||||||
|
RUN echo "build ALL = (root) NOPASSWD: $(which pacman)" >> /etc/sudoers
|
||||||
|
WORKDIR /home/build
|
||||||
|
USER build
|
||||||
|
|
||||||
|
# Install VSCode
|
||||||
|
RUN git clone https://aur.archlinux.org/visual-studio-code-bin.git && \
|
||||||
|
cd visual-studio-code-bin && \
|
||||||
|
makepkg -si --noconfirm --needed && \
|
||||||
|
cd .. && \
|
||||||
|
rm -rf visual-studio-code-bin
|
||||||
|
|
||||||
|
USER root
|
||||||
|
WORKDIR /
|
||||||
|
|
||||||
####################
|
####################
|
||||||
##### COPIES #####
|
##### COPIES #####
|
||||||
####################
|
####################
|
||||||
|
|||||||
Reference in New Issue
Block a user