Files
wunker-os/Containerfile
Eino Rauhala 1d208f6eae feat: add a just setup command for setting up nix (#48)
* feat: add nix install script from bluefin / dnkmmr

* feat: add nix-me-up just cmd from bluefin

* feat: just update nix if installed

* feat: add nix-app-icons.sh
enables desktop icon support by adding to XDG_DATA_DIRS

* chore: remove nix update for now
this will be added in a later PR
2023-04-29 11:08:17 +00:00

35 lines
1.0 KiB
Docker

ARG FEDORA_MAJOR_VERSION=37
ARG BASE_IMAGE_URL=ghcr.io/ublue-os/silverblue-main
FROM ${BASE_IMAGE_URL}:${FEDORA_MAJOR_VERSION}
ARG RECIPE
# copy over configuration files
# etc is copied to /usr/etc/ to prevent "merge conflicts"
# as it is the proper directory for "system" configuration files
# and /etc/ is for editing by the local admin
# see issue #28 (https://github.com/ublue-os/startingpoint/issues/28)
COPY etc /usr/etc
COPY usr /usr
# copy scripts
RUN mkdir /tmp/scripts
COPY scripts /tmp/scripts
RUN find /tmp/scripts -type f -exec chmod +x {} \;
COPY ${RECIPE} /usr/etc/ublue-recipe.yml
# yq used in build.sh and the setup-flatpaks recipe to read the recipe.yml
# copied from the official container image as it's not avaible as an rpm
COPY --from=docker.io/mikefarah/yq /usr/bin/yq /usr/bin/yq
# copy and run the build script
COPY build.sh /tmp/build.sh
RUN chmod +x /tmp/build.sh && /tmp/build.sh
# clean up and finalize container build
RUN rm -rf \
/tmp/* \
/var/* && \
ostree container commit