Skip to content

Commit ceed01a

Browse files
committed
Install tools and dependencies required for Flatpak build
Ubuntu 16.04 doesn't ship Flatpak in default repositories, so we need to install it from the project's PPA. Additionally, it ships too old Python for a tool used to create and upload Flathub builds to work, so we need another PPA to install Python 3.6.
1 parent eb39349 commit ceed01a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

dockerbuild/Dockerfile

+13-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,19 @@ RUN apt-get -qq update && apt-get -qq dist-upgrade && \
1616
libsqlcipher-dev && \
1717
# git-lfs
1818
git lfs install && \
19-
apt-get purge -y --auto-remove && rm -rf /var/lib/apt/lists/*
19+
# used by flathub client \
20+
apt-get install -y software-properties-common && \
21+
add-apt-repository ppa:flatpak/stable && \
22+
add-apt-repository ppa:deadsnakes/ppa && \
23+
apt-get -qq update && \
24+
apt-get -qq install -y --no-install-recommends flatpak ostree && \
25+
apt-get -qq install -y python3.6 python3.6-distutils python3.6-dev libgirepository1.0-dev gir1.2-ostree-1.0 libcairo2-dev && \
26+
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
27+
python3.6 get-pip.py && \
28+
curl -sSL https://raw.githubusercontent.com/flatpak/flat-manager/master/flat-manager-client -o /usr/local/bin/flat-manager-client && \
29+
chmod +x /usr/local/bin/flat-manager-client && \
30+
/usr/local/bin/pip install aiohttp tenacity PyGObject && \
31+
apt-get purge -y --auto-remove && rm -rf /var/lib/apt/lists/
2032

2133
WORKDIR /project
2234

0 commit comments

Comments
 (0)