Skip to content

Commit

Permalink
cleanup: Be selective about image formats in appimage as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Jan 8, 2025
1 parent a762072 commit 9b3dcc0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions qtox/docker/Dockerfile.alpine-appimage
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,14 @@ RUN mkdir -p /src/tox \
&& /build/build_toxcore.sh --arch "$SCRIPT_ARCH" --libtype shared \
&& rm -fr /src/tox

# We're selective about Qt image format plugins for security reasons. We only
# include the ones we've tested (e.g. with fuzzing).
RUN mkdir /work/tmp \
&& for fmt in kimg_qoi qgif qjpeg qsvg qwebp; do \
cp "/work/qt/plugins/imageformats/lib$fmt.so" /work/tmp; \
done \
&& rm -rf /work/qt/plugins/imageformats \
&& mv /work/tmp /work/qt/plugins/imageformats

WORKDIR /qtox
ENV HOME=/qtox

0 comments on commit 9b3dcc0

Please sign in to comment.