Split long line for repo file

This commit is contained in:
Torjus Håkestad 2024-02-01 20:22:09 +01:00
parent 65c0898bf1
commit 380a735cd7

View File

@ -2,7 +2,14 @@ FROM registry.fedoraproject.org/fedora-toolbox:39
# Install vscode repo
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc
RUN sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc"> /etc/yum.repos.d/vscode.repo'
RUN echo -e "\
[code]\n\
name=Visual Studio Code\n\
baseurl=https://packages.microsoft.com/yumrepos/vscode\n\
enabled=1\n\
gpgcheck=1\n\
gpgkey=https://packages.microsoft.com/keys/microsoft.asc\n\
" > /etc/yum.repos.d/vscode.repo
RUN dnf update -y \
&& dnf install -y \