-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (39 loc) · 1.59 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
FROM ubuntu:jammy
ARG TCE_VERSION=13.1.0
ENV APP_HOME /app
WORKDIR $APP_HOME
ENV TZ=Europe/Paris
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone \
&& apt-get update \
&& apt-get install -y \
inkscape \
libffi-dev \
locales\
python3-dev \
python3-pip \
ttf-bitstream-vera \
wget \
&& locale-gen en_US.UTF-8 \
&& pip3 install Flask requests gevent \
&& wget -q https://github.com/eosrei/twemoji-color-font/releases/download/v$TCE_VERSION/TwitterColorEmoji-SVGinOT-Linux-$TCE_VERSION.tar.gz \
&& tar zxf TwitterColorEmoji-SVGinOT-Linux-$TCE_VERSION.tar.gz \
&& cd TwitterColorEmoji-SVGinOT-Linux-$TCE_VERSION \
&& ./install.sh \
&& cd .. \
&& rm -fr TwitterColorEmoji-SVGinOT-Linux-$TCE_VERSION TwitterColorEmoji-SVGinOT-Linux-$TCE_VERSION.tar.gz
# Install extensions from current extensions repository HEAD
# This may be removed when commit e15529f3 will be included in current Inkscape releases
# Waiting for fix: 9e1302af Fix unit conversions for uutounit and unittouu
# Bug introduced in: e15529f3 Fix inconsistant use of units, default to px units
RUN wget -q https://gitlab.com/inkscape/extensions/-/archive/master/extensions-master.tar \
&& tar xf extensions-master.tar \
&& rm -fr /usr/share/inkscape/extensions \
&& mv extensions-master /usr/share/inkscape/extensions \
&& rm -f extensions-master.tar \
&& pip3 install cssselect tinycss2
COPY . $APP_HOME
COPY files/extensions/* /usr/share/inkscape/extensions/
CMD ["python3", "inkscape.py"]