-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile
37 lines (29 loc) · 1.08 KB
/
Containerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ARG IMAGE_NAME="${IMAGE_NAME:-kinoite}"
ARG IMAGE_SUFFIX="${IMAGE_SUFFIX:-main}"
ARG FULL_IMAGE_NAME="${IMAGE_NAME}${IMAGE_SUFFIX:+-$IMAGE_SUFFIX}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-41}"
FROM ghcr.io/ublue-os/${FULL_IMAGE_NAME}:${FEDORA_MAJOR_VERSION}
ARG IMAGE_NAME="${IMAGE_NAME:-kinoite}"
ARG IMAGE_SUFFIX="${IMAGE_SUFFIX:-main}"
ARG FULL_IMAGE_NAME="${IMAGE_NAME}${IMAGE_SUFFIX:+-$IMAGE_SUFFIX}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-41}"
# reinstall ublue-os-update-services for images that use ublue-update instead
COPY --from=ghcr.io/ublue-os/config:latest /files/ublue-os-update-services /
COPY system_files /
RUN mkdir -p /usr/share/ublue-os && \
echo "$FULL_IMAGE_NAME" >/usr/share/ublue-os/image-name
COPY packages.sh \
packages.json \
flatpaks.sh \
flatpaks.json \
extras.sh \
post-install.sh \
/tmp/
RUN /tmp/packages.sh && \
/tmp/flatpaks.sh && \
/tmp/extras.sh && \
/tmp/post-install.sh
RUN rm -rf /tmp/* /var/* && \
ostree container commit && \
mkdir -p /tmp /var/tmp && \
chmod 1777 /tmp /var/tmp