mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 09:52:37 +02:00
container: Add H2ORestart for HWP/HWPX support
H2ORestart is a LibreOffice extension which adds Hancom HWP/HWPX (Hangul Word Processor) supports for LibreOffice. This format is widely used in South Korea. Version: v0.5.7 Extension Repository: https://github.com/ebandal/H2Orestart/releases
This commit is contained in:
parent
76a1a885f5
commit
d8cc24cebe
1 changed files with 11 additions and 0 deletions
11
Dockerfile
11
Dockerfile
|
@ -1,6 +1,7 @@
|
|||
FROM alpine:latest
|
||||
|
||||
ARG TESSDATA_CHECKSUM=990fffb9b7a9b52dc9a2d053a9ef6852ca2b72bd8dfb22988b0b990a700fd3c7
|
||||
ARG H2ORESTART_CHECKSUM=5db816a1e57b510456633f55e693cb5ef3675ef8b35df4f31c90ab9d4c66071a
|
||||
|
||||
# Install dependencies
|
||||
RUN apk --no-cache -U upgrade && \
|
||||
|
@ -32,6 +33,16 @@ RUN mkdir tessdata && cd tessdata \
|
|||
&& find . -name '*.traineddata' -maxdepth 2 -exec cp {} /usr/share/tessdata \; \
|
||||
&& cd .. && rm -r tessdata
|
||||
|
||||
RUN mkdir h2orestart && cd h2orestart \
|
||||
&& H2ORESTART_FILENAME=h2orestart.oxt \
|
||||
&& H2ORESTART_VERSION="v0.5.7" \
|
||||
&& wget https://github.com/ebandal/H2Orestart/releases/download/$H2ORESTART_VERSION/$H2ORESTART_FILENAME \
|
||||
&& echo "$H2ORESTART_CHECKSUM $H2ORESTART_FILENAME" | sha256sum -c \
|
||||
&& _DESTDIR="/usr/lib/libreoffice/share/extensions/h2orestart/" \
|
||||
&& install -dm755 $_DESTDIR \
|
||||
&& unzip $H2ORESTART_FILENAME -d $_DESTDIR \
|
||||
&& cd .. && rm -r h2orestart
|
||||
|
||||
ENV PYTHONPATH=/opt/dangerzone
|
||||
|
||||
RUN mkdir -p /opt/dangerzone/dangerzone
|
||||
|
|
Loading…
Reference in a new issue