-
Notifications
You must be signed in to change notification settings - Fork 36
/
Dockerfile
34 lines (27 loc) · 1.17 KB
/
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
32
33
34
FROM debian:bookworm
ENV DEBIAN_FRONTEND=noninteractive
ADD dependencies.apt.txt ./
RUN sed -i "s/Types: deb/Types: deb deb-src/" /etc/apt/sources.list.d/debian.sources && \
apt-get update && \
xargs apt-get install --no-install-recommends -y < dependencies.apt.txt && \
apt-get --no-install-recommends -y build-dep python3-apt && \
apt-get clean && \
rmdir /var/cache/apt/archives/partial
# All requirements should be satisfied by dependencies.apt.txt. Feed
# requirements.txt through pip to check it is in synch, without installing
# anything.
#
# The 'sed' invocation is required because pip doesn't know that the tarball
# listed in that file is the Debian package.
ADD requirements.txt ./
RUN sed -i 's/python-apt @ .*/python-apt/' requirements.txt && \
pip install --dry-run --report report.json --break-system-packages -r requirements.txt && \
cat report.json && \
jq -e '.install == []' report.json >/dev/null && \
rm report.json && \
rm -rf $HOME/.cache/pip
COPY src /app/src
COPY flatpak-external-data-checker /app/
COPY canonicalize-manifest /app/
RUN python3 -m compileall /app/src
ENTRYPOINT [ "/app/flatpak-external-data-checker" ]