Basing the container on the official flatpak builder container to avoid duse issues

This commit is contained in:
XargonWan 2024-11-05 16:17:16 +09:00
parent 8fa1a5b7e8
commit 47479974a5

View file

@ -1,20 +1,17 @@
# Use Fedora as the base image # Based on: https://github.com/flatpak/flatpak-docker-images/blob/master/Dockerfile
FROM fedora:latest
# Install the required packages FROM fedora:41
RUN dnf install -y \ VOLUME /build
flatpak \ WORKDIR /build
flatpak-builder \ ENV FLATPAK_GL_DRIVERS=dummy
p7zip \ RUN dnf -y update && \
xmlstarlet \ dnf install -y flatpak-builder ostree fuse elfutils dconf git bzr p7zip xmlstarlet bzip2 curl jq && \
bzip2 \
curl \
jq && \
dnf clean all dnf clean all
# Add flathub and flathub-beta remotes for flatpak RUN flatpak remote-add flathub https://dl.flathub.org/repo/flathub.flatpakrepo
RUN flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && \ RUN flatpak remote-add flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
flatpak remote-add --user --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo RUN flatpak remote-add gnome-nightly https://sdk.gnome.org/gnome-nightly.flatpakrepo
RUN flatpak remote-add gnome https://sdk.gnome.org/gnome.flatpakrepo
# Set default command (optional, for testing purposes) # Set default command (optional, for testing purposes)
ENTRYPOINT [ "flatpak-builder" ] ENTRYPOINT [ "flatpak-builder" ]