-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
57 lines (49 loc) · 1.6 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FROM rocker/r-base:latest
COPY pptx2ari.sh /usr/local/bin
COPY gs2ari.sh /usr/local/bin
RUN apt-get update \
&& apt-get install -y \
libpoppler-cpp-dev \
ffmpeg \
libavfilter-dev \
libtesseract-dev \
libleptonica-dev \
tesseract-ocr-eng \
libwebp-dev \
libgdal-dev \
imagemagick \
r-cran-httr \
libssl-dev \
libmagick++-dev \
libfontconfig-dev \
libxml2-dev \
libsodium-dev \
cargo \
default-jre \
libreoffice-java-common \
libreoffice \
wget && \
rm -rf /var/lib/apt/lists/*
RUN install2.r --error --deps TRUE \
magick googledrive tuber pdftools aws.polly usethis docxtractr
RUN installGithub.r --deps TRUE \
jhudsl/ariExtra jhudsl/ari jhudsl/text2speech jhudsl/didactr
RUN echo "/usr/lib/libreoffice/program/" > /etc/ld.so.conf.d/openoffice.conf && \
ldconfig && \
chmod +x /usr/local/bin/pptx2ari.sh && \
chmod +x /usr/local/bin/gs2ari.sh && \
rm -rf /tmp/downloaded_packages/ /tmp/*.rds && \
rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/RedHatOfficial/RedHatFont/archive/4.0.2.tar.gz -O /root/font.tar.gz && \
mkdir -pv /root/font && \
tar zxvf /root/font.tar.gz --directory /root/font && \
ls -al /root/font* && \
cp -v /root/font/*/*/*/*.ttf /usr/share/fonts && \
fc-cache -f -v && \
rm -fr /root/font.tar.gz /root/font*
RUN useradd avg \
&& echo "avg:avg" | chpasswd \
&& mkdir /home/avg \
&& chown avg:avg /home/avg \
&& addgroup avg staff
CMD ["bash"]