mirror of
https://github.com/gotson/komga.git
synced 2026-04-20 05:52:21 +02:00
fix(docker): change installation method for libjxl
Co-authored-by: Fahim <37258115+farahnur42@users.noreply.github.com> Co-authored-by: darthmooguy <10374678+darthmooguy@users.noreply.github.com>
This commit is contained in:
parent
f8e65b0740
commit
ad1d1da1f2
1 changed files with 8 additions and 6 deletions
|
|
@ -4,13 +4,15 @@ COPY assembly/* /
|
|||
RUN java -Djarmode=layertools -jar ${JAR} extract
|
||||
|
||||
FROM eclipse-temurin:19-jre
|
||||
# Install libjxl on x64 only. Homebrew is not available on other architectures.
|
||||
# Install libjxl on x64 only. It is not available on other architectures.
|
||||
RUN if [ "`uname -m`" = "x86_64" ]; then \
|
||||
apt -y update && \
|
||||
apt -y install git gcc && \
|
||||
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && \
|
||||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && \
|
||||
brew install jpeg-xl; fi
|
||||
apt -y install wget && \
|
||||
wget "https://github.com/libjxl/libjxl/releases/download/v0.8.1/jxl-debs-amd64-ubuntu-22.04-v0.8.1.tar.gz" && \
|
||||
tar -xzf jxl-debs-amd64-ubuntu-22.04-v0.8.1.tar.gz && \
|
||||
apt -y install ./jxl_0.8.1_amd64.deb ./libjxl_0.8.1_amd64.deb ./libjxl-dev_0.8.1_amd64.deb && \
|
||||
rm *.deb && rm *.ddeb && rm jxl-debs-amd64-ubuntu-22.04-v0.8.1.tar.gz && \
|
||||
apt -y remove wget && apt -y clean && rm -rf /var/lib/apt/lists/*; fi
|
||||
|
||||
VOLUME /tmp
|
||||
VOLUME /config
|
||||
|
|
@ -21,7 +23,7 @@ COPY --from=builder snapshot-dependencies/ ./
|
|||
COPY --from=builder application/ ./
|
||||
ENV KOMGA_CONFIGDIR="/config"
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/home/linuxbrew/.linuxbrew/lib/"
|
||||
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/lib/x86_64-linux-gnu"
|
||||
ENTRYPOINT ["java", "--enable-preview", "--enable-native-access=ALL-UNNAMED", "org.springframework.boot.loader.JarLauncher", "--spring.config.additional-location=file:/config/"]
|
||||
EXPOSE 25600
|
||||
LABEL org.opencontainers.image.source="https://github.com/gotson/komga"
|
||||
|
|
|
|||
Loading…
Reference in a new issue