mirror of
https://github.com/zealdocs/zeal.git
synced 2024-12-02 09:44:14 +03:00
26 lines
1.2 KiB
Docker
26 lines
1.2 KiB
Docker
FROM ubuntu:jammy
|
|
|
|
RUN apt-get update -q -y \
|
|
# Install appimage-builder and appimagetool dependencies.
|
|
&& DEBIAN_FRONTEND="noninteractive" apt-get install -q -y --no-install-recommends \
|
|
appstream curl desktop-file-utils fakeroot file git gnupg patchelf squashfs-tools zsync \
|
|
python3-pip python3-setuptools python3-wheel \
|
|
&& \
|
|
# Install appimagetool, it has to be extracted because FUSE doesn't work in containers without extra fiddling.
|
|
cd /tmp && \
|
|
curl -sLO https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage && \
|
|
chmod +x appimagetool-x86_64.AppImage && \
|
|
./appimagetool-x86_64.AppImage --appimage-extract && \
|
|
mv squashfs-root/ /opt/appimagetool.AppDir && \
|
|
ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool && \
|
|
rm appimagetool-x86_64.AppImage && \
|
|
cd - && \
|
|
# Install appimage-builder.
|
|
pip3 install git+https://github.com/AppImageCrafters/appimage-builder.git@669213cb730e007d5b316ed19b39691fbdcd41c4 && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Set entrypoint.
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|