add AUR vscode to arch toolbox

This commit is contained in:
2025-04-19 20:58:18 -04:00
parent 03e959c215
commit d44773389e

View File

@@ -85,8 +85,6 @@ RUN pacman -S --noconfirm \
pandoc \
# Comprehensive LaTeX distribution for high-quality typesetting of documents.
texlive-latex texlive-latexextra texlive-latexrecommended texlive-binextra texlive-fontsrecommended texlive-fontsextra \
# Visual Studio Code editor
code \
# Python static type checker and code formatter.
ruff \
# 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 && \
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 #####
####################