mirror of
https://github.com/RetroDECK/retrodeck-builder.git
synced 2024-11-21 13:45:38 +00:00
Back to the original, almost
This commit is contained in:
parent
e7bdf048f3
commit
5df7ed0f63
47
Dockerfile
47
Dockerfile
|
@ -1,33 +1,20 @@
|
||||||
# Based on: https://github.com/ebassi/flathub-docker/blob/master/base/Dockerfile
|
# Use Fedora as the base image
|
||||||
|
FROM fedora:41
|
||||||
|
|
||||||
FROM debian:stretch-slim
|
# Install the required packages
|
||||||
|
RUN dnf install -y \
|
||||||
|
flatpak \
|
||||||
|
flatpak-builder \
|
||||||
|
p7zip \
|
||||||
|
xmlstarlet \
|
||||||
|
bzip2 \
|
||||||
|
curl \
|
||||||
|
jq && \
|
||||||
|
dnf clean all
|
||||||
|
|
||||||
RUN echo "deb-src http://httpredir.debian.org/debian stretch main" >> /etc/apt/sources.list
|
# Add flathub and flathub-beta remotes for flatpak
|
||||||
|
RUN flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo && \
|
||||||
|
flatpak remote-add --user --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
|
||||||
|
|
||||||
RUN apt-get update -qq && \
|
# Set default command (optional, for testing purposes)
|
||||||
apt-get install -qq -y --no-install-recommends \
|
ENTRYPOINT [ "flatpak-builder", "--no-sandbox", "--install-deps-from=flathub", "--install-deps-from=flathub-beta" ]
|
||||||
flatpak \
|
|
||||||
git-core \
|
|
||||||
locales \
|
|
||||||
make && \
|
|
||||||
p7zip \
|
|
||||||
xmlstarlet \
|
|
||||||
bzip2 \
|
|
||||||
curl \
|
|
||||||
jq \
|
|
||||||
rm -rf /usr/share/doc/* /usr/share/man/*
|
|
||||||
|
|
||||||
RUN locale-gen C.UTF-8 && /usr/sbin/update-locale LANG=C.UTF-8
|
|
||||||
|
|
||||||
ENV LANG=C.UTF-8 LANGUAGE=C.UTF-8 LC_ALL=C.UTF-8
|
|
||||||
|
|
||||||
COPY flatpak-build.sh /root
|
|
||||||
RUN chmod +x /root/flatpak-build.sh
|
|
||||||
|
|
||||||
RUN /root/flatpak-build.sh
|
|
||||||
|
|
||||||
RUN flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
|
|
||||||
RUN flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
|
|
||||||
RUN flatpak remote-add --if-not-exists gnome https://sdk.gnome.org/gnome.flatpakrepo
|
|
||||||
|
|
||||||
ENTRYPOINT [ "flatpak-builder" ]
|
|
Loading…
Reference in a new issue