Skip to content

Commit

Permalink
vscode repo, yum clean all
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmmcgee committed Oct 7, 2023
1 parent a4017fc commit 1d8fc94
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,13 @@ RUN dnf install -y \
wl-clipboard \
zsh

# install microsoft VS Code
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc && \
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' && \
dnf install -y code

# link some things back
RUN ln -sf /usr/bin/distrobox-host.exec /usr/local/bin/buildah && \
RUN ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/buildah && \
ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \
ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/cosign && \
ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/htop && \
Expand All @@ -100,4 +105,5 @@ RUN ln -sf /usr/bin/distrobox-host.exec /usr/local/bin/buildah && \
ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/xdg-open

# Cleanup
RUN rm -rf /tmp/*
RUN rm -rf /tmp/* && \
dnf clean all

0 comments on commit 1d8fc94

Please sign in to comment.