refactor: change container usage to be similar to ublue-os/config
This commit is contained in:
parent
e845e7b5c9
commit
4a55e01021
2 changed files with 20 additions and 12 deletions
|
|
@ -1,10 +1,18 @@
|
|||
FROM registry.fedoraproject.org/fedora:latest
|
||||
FROM registry.fedoraproject.org/fedora:latest AS builder
|
||||
|
||||
RUN dnf update -y && dnf install wget -y && dnf clean all
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=builder /tmp/ublue-os/files /files
|
||||
|
||||
RUN wget https://github.com/loft-sh/devpod/releases/latest/download/devpod-linux-amd64 -O /tmp/devpod && \
|
||||
install -c -m 0755 /tmp/devpod /usr/bin && \
|
||||
wget https://copr.fedorainfracloud.org/coprs/ganto/lxc4/repo/fedora-"${FEDORA_MAJOR_VERSION}"/ganto-lxc4-fedora-"${FEDORA_MAJOR_VERSION}".repo -O /etc/yum.repos.d/ganto-lxc4-fedora-"${FEDORA_MAJOR_VERSION}".repo && \
|
||||
wget https://terra.fyralabs.com/terra.repo -O /etc/yum.repos.d/terra.repo && \
|
||||
curl -s https://raw.githubusercontent.com/dnkmmr69420/nix-installer-scripts/main/installer-scripts/silverblue-nix-installer.sh -O /usr/bin/ublue-nix-install && \
|
||||
chmod +x /usr/bin/ublue-nix-install
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue