Files
ucore/Containerfile
Benjamin Sherman c1fbb428b8 refactor: pattern Containerfile scripts after uBlue (#5)
Pattern the uCore build after ublue-os/main to provide consistency between
different image builds in the organization.
2023-03-19 23:53:40 -05:00

19 lines
438 B
Docker

ARG IMAGE_NAME="${IMAGE_NAME:-ucore}"
ARG COREOS_VERSION="${COREOS_VERSION:-stable}"
FROM quay.io/fedora/fedora-coreos:${COREOS_VERSION}
ARG IMAGE_NAME
ARG COREOS_VERSION
ADD build.sh /tmp/build.sh
ADD post-install.sh /tmp/post-install.sh
ADD packages.json /tmp/packages.json
COPY etc /etc
RUN /tmp/build.sh
RUN /tmp/post-install.sh
RUN rm -rf /tmp/* /var/*
RUN ostree container commit
RUN mkdir -p /var/tmp && chmod -R 1777 /var/tmp