feat: detach fetching from containerfile + add rpms and fonts
Although it may not help that much with the "curl" issue, cloning git repositories is a bunch better than raw curl-ing fixes: [fonts] can we repackage Nerdfonts #3 Include fonts through git modules #6 [nix] install and uninstall scripts #2
This commit is contained in:
parent
1acccb0240
commit
4df7667c35
4 changed files with 32 additions and 92 deletions
|
|
@ -3,16 +3,15 @@ FROM registry.fedoraproject.org/fedora:latest AS builder
|
|||
RUN dnf update -y && dnf install --disablerepo='*' --enablerepo='fedora,updates' --setopt install_weak_deps=0 --nodocs --assumeyes wget && dnf clean all
|
||||
|
||||
RUN mkdir -p /tmp/ublue-os/files/{etc,usr}
|
||||
|
||||
COPY usr /tmp/ublue-os/files/usr
|
||||
COPY etc /tmp/ublue-os/files/etc
|
||||
ADD fetch.sh /tmp/fetch.sh
|
||||
|
||||
RUN wget "https://github.com/loft-sh/devpod/releases/latest/download/devpod-linux-amd64" -O /tmp/devpod && \
|
||||
install -c -m 0755 /tmp/devpod /tmp/ublue-os/files/usr/bin && \
|
||||
wget "https://terra.fyralabs.com/terra.repo" -O /tmp/ublue-os/files/etc/yum.repos.d/terra.repo && \
|
||||
curl -s "https://raw.githubusercontent.com/dnkmmr69420/nix-installer-scripts/main/installer-scripts/silverblue-nix-installer.sh" >> /tmp/ublue-nix-install && \
|
||||
install -c -m 0755 /tmp/ublue-nix-install /tmp/ublue-os/files/usr/bin
|
||||
RUN chmod +x /tmp/fetch.sh && \
|
||||
/tmp/fetch.sh
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder /tmp/ublue-os/files /files
|
||||
|
||||
COPY --from=builder /tmp/ublue-os/rpms /rpms
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue