-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (38 loc) · 1.65 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
FROM nodesource/node
MAINTAINER Jorge J. Gomez-Sanz <jjgomez@ucm.es>
RUN \
apt-get update && \
# Install packages needed to enable an extra repository.
DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common &&\
DEBIAN_FRONTEND=noninteractive apt-get update &&\
DEBIAN_FRONTEND=noninteractive \
apt-get -y install \
git \
vim \
inkscape \
wget \
gnupg
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install curl software-properties-common
#RUN apt-get install -y nodejs nodejs-legacy
RUN mkdir /home/inkscape
WORKDIR /home/inkscape
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wine
RUN DEBIAN_FRONTEND=noninteractive npm install bower grunt-cli -g
#Installs one of the prebuilt images
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install libgconf-2-4 libxss1 unzip
# install sozi media extensions for inkscape
RUN cd /home/inkscape
RUN wget https://github.com/senshu/Sozi/releases/download/v18.04/Sozi-extras-media-18.04-1523042682.zip
RUN unzip Sozi-extras-media-18.04-1523042682.zip
RUN mv sozi_extras_media.inx /usr/share/inkscape/extensions
RUN mv sozi_extras_media.py /usr/share/inkscape/extensions
RUN git clone git://github.com/senshu/Sozi.git /home/inkscape/Sozi
RUN cd /home/inkscape/Sozi
RUN npm install
# Just a "bower install" does not work
# Also, doing "cd" here does not work. Need to use WORKDIR
WORKDIR /home/inkscape/Sozi
RUN bower --allow-root install
# install the export sozi presentations to pdf, pptx or video
RUN DEBIAN_FRONTEND=noninteractive apt -y install texlive-extra-utils libav-tools
RUN DEBIAN_FRONTEND=noninteractive npm install -g sozi-export --unsafe-perm