-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflatpak.Dockerfile
31 lines (21 loc) · 1.11 KB
/
flatpak.Dockerfile
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
FROM archlinux
RUN ln -s /usr/share/zoneinfo/UTC /etc/localtime
RUN pacman-key --init
RUN pacman -Sy archlinux-keyring --noconfirm && \
pacman -Syu --noconfirm \
bash \
git \
python \
python-pipx \
python-aiohttp \
python-toml \
flatpak \
flatpak-builder
# list available runtimes with `flatpak remote-ls --user flathub | grep org.gnome.Sdk`
RUN flatpak install -y org.gnome.Platform//45 org.gnome.Sdk//45 runtime/org.freedesktop.Sdk.Extension.rust-stable/x86_64/23.08 runtime/org.freedesktop.Sdk.Extension.node18/x86_64/23.08
RUN git clone https://github.com/flatpak/flatpak-builder-tools.git /opt/flatpak-builder-tools
RUN echo 'export PATH=$PATH:/root/.local/bin' >> /root/.bashrc
RUN cd /opt/flatpak-builder-tools/node; pipx install .
RUN cp /opt/flatpak-builder-tools/cargo/flatpak-cargo-generator.py /usr/bin/flatpak-cargo-generator.py
RUN chmod +x /usr/bin/flatpak-cargo-generator.py
WORKDIR /