Skip to content

Commit 1553b23

Browse files
authored
Dockerfile: Rebase on Flathub actions image (#234)
1 parent 15f65f9 commit 1553b23

1 file changed

Lines changed: 4 additions & 25 deletions

File tree

Dockerfile

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
1-
FROM ubuntu:latest
2-
3-
ARG TARGETARCH
4-
5-
ENV DEBIAN_FRONTEND=noninteractive
6-
7-
RUN apt-get update && \
8-
apt-get -y install curl flatpak flatpak-builder python3-aiohttp python3-tenacity python3-gi libostree-dev xvfb ccache zstd docker.io && \
9-
apt-get -y autoremove && \
10-
apt-get autoclean && \
11-
rm -rf /var/lib/apt/lists/*
1+
# Base on the official Docker image for CI by Flathub to use patched version of AppStream
2+
# that propagates all custom tags in .metainfo files.
3+
# See https://github.com/flatpak/flatpak-builder/pull/735
4+
FROM ghcr.io/flathub-infra/flatpak-github-actions:gnome-50
125

136
RUN flatpak remote-add --if-not-exists appcenter https://flatpak.elementary.io/repo.flatpakrepo
14-
15-
RUN curl -L https://github.com/flatpak/flat-manager/releases/download/0.5.0/flat-manager-client.$TARGETARCH -o ./flat-manager-client
16-
17-
RUN SHA256_EXPECTED=$( \
18-
case $TARGETARCH in \
19-
amd64) echo "9733a148ac185bc8d7fb0429a43f9ad7d934635760bb71933658642c697f87c9";; \
20-
arm64) echo "fa9a916badc539ff7319895789f004dc99b81eb8e90a75857232121650335956";; \
21-
esac \
22-
) && \
23-
SHA256_CALC=$(sha256sum ./flat-manager-client | awk '{ print $1 }') && \
24-
[ "$SHA256_CALC" = "$SHA256_EXPECTED" ]
25-
26-
RUN mv ./flat-manager-client /usr/bin/flat-manager-client
27-
RUN chmod +x /usr/bin/flat-manager-client

0 commit comments

Comments
 (0)