forked from olbat/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (31 loc) · 890 Bytes
/
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
35
36
37
38
ARG MAINTAINER
FROM debian:stable-slim
MAINTAINER $MAINTAINER
# Install Packages
RUN apt-get update \
&& apt-get install -y \
sudo \
curl \
openjdk-11-jre \
libreoffice-help-en-us \
hunspell-en-us \
mythes-en-us \
hyphen-en-us \
libreoffice \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Configure Java Env. (see https://wiki.debian.org/LibreOffice#Java_Environment)
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
# Install LanguageTool extension
# FIXME: temporary disabled because of an error similar to this one:
# https://github.com/hanya/MRI/issues/11
#RUN curl -s https://www.languagetool.org/download/LanguageTool-stable.oxt \
# > /tmp/LanguageTool.oxt \
#&& unopkg add --shared /tmp/LanguageTool.oxt \
#&& rm /tmp/LanguageTool.oxt
# Default volume
RUN mkdir /data
WORKDIR /data
VOLUME ["/data"]
# Default command
CMD ["/usr/bin/libreoffice"]