File tree Expand file tree Collapse file tree 3 files changed +4
-16
lines changed Expand file tree Collapse file tree 3 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,12 @@ FROM debian:stable
3
3
# # dependency installation: nginx, wattsi, and other build tools
4
4
# # cleanup freepascal since it is no longer needed after wattsi build
5
5
RUN apt-get update && \
6
- apt-get install -y ca-certificates curl git unzip fp-compiler fp-units-fcl fp-units-net libc6-dev nginx python2.7 python-pip && \
7
- git clone https://github.com/whatwg/wattsi.git /whatwg/wattsi && \
8
- cd /whatwg/wattsi && \
9
- /whatwg/wattsi/build.sh && \
10
- cp /whatwg/wattsi/bin/wattsi /bin/ && \
11
- apt-get purge -y fp-compiler fp-units-fcl fp-units-net && \
12
- apt-get autoremove -y && \
6
+ apt-get install -y ca-certificates curl git unzip nginx python2.7 python-pip && \
13
7
rm -rf /etc/nginx/sites-enabled/* && \
14
8
rm -rf /var/lib/apt/lists/*
15
9
10
+ COPY --from=whatwg/wattsi:latest /whatwg/wattsi/bin/wattsi /bin/wattsi
11
+
16
12
ADD . /whatwg/build
17
13
18
14
ARG html_source_dir
Original file line number Diff line number Diff line change @@ -4,15 +4,13 @@ FROM debian:stable
4
4
5
5
RUN apt-get update && \
6
6
apt-get install -y ca-certificates curl rsync git unzip \
7
- fp-compiler fp-units-fcl fp-units-net libc6-dev \
8
7
default-jre \
9
8
libfontconfig1 libgomp1 libxml2 \
10
9
python2.7 python-pip \
11
10
fonts-dejavu fonts-droid-fallback fonts-liberation fonts-symbola fonts-unfonts-core
12
11
13
12
# Dependency lines above are:
14
13
# - General
15
- # - Wattsi
16
14
# - validator
17
15
# - Prince
18
16
# - Highlighter
@@ -39,11 +37,7 @@ RUN cd /whatwg && \
39
37
rm -rf pdfsizeopt_libexec.tar.gz pdfsizeopt_libexec
40
38
ENV PATH="/whatwg/pdfsizeopt/bin:${PATH}"
41
39
42
- ADD wattsi /whatwg/wattsi
43
-
44
- RUN cd /whatwg/wattsi && \
45
- /whatwg/wattsi/build.sh
46
- ENV PATH="/whatwg/wattsi/bin:${PATH}"
40
+ COPY --from=whatwg/wattsi:latest /whatwg/wattsi/bin/wattsi /bin/wattsi
47
41
48
42
ADD html-build /whatwg/html-build
49
43
Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ IS_TEST_OF_HTML_BUILD_ITSELF=${IS_TEST_OF_HTML_BUILD_ITSELF:-false}
24
24
git submodule update
25
25
)
26
26
27
- git clone --depth 1 https://github.com/whatwg/wattsi.git wattsi
28
-
29
27
git clone --depth 1 https://github.com/pts/pdfsizeopt.git pdfsizeopt
30
28
31
29
# Copy the Docker-related stuff into the working (grandparent) directory.
You can’t perform that action at this time.
0 commit comments