Skip to content

Commit 3593258

Browse files
committed
Update to use Docker Hub Wattsi image
Follows whatwg/wattsi#118.
1 parent bcac2ad commit 3593258

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,12 @@ FROM debian:stable
33
## dependency installation: nginx, wattsi, and other build tools
44
## cleanup freepascal since it is no longer needed after wattsi build
55
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 && \
137
rm -rf /etc/nginx/sites-enabled/* && \
148
rm -rf /var/lib/apt/lists/*
159

10+
COPY --from=whatwg/wattsi:latest /whatwg/wattsi/bin/wattsi /bin/wattsi
11+
1612
ADD . /whatwg/build
1713

1814
ARG html_source_dir

ci-deploy/Dockerfile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ FROM debian:stable
44

55
RUN apt-get update && \
66
apt-get install -y ca-certificates curl rsync git unzip \
7-
fp-compiler fp-units-fcl fp-units-net libc6-dev \
87
default-jre \
98
libfontconfig1 libgomp1 libxml2 \
109
python2.7 python-pip \
1110
fonts-dejavu fonts-droid-fallback fonts-liberation fonts-symbola fonts-unfonts-core
1211

1312
# Dependency lines above are:
1413
# - General
15-
# - Wattsi
1614
# - validator
1715
# - Prince
1816
# - Highlighter
@@ -39,11 +37,7 @@ RUN cd /whatwg && \
3937
rm -rf pdfsizeopt_libexec.tar.gz pdfsizeopt_libexec
4038
ENV PATH="/whatwg/pdfsizeopt/bin:${PATH}"
4139

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
4741

4842
ADD html-build /whatwg/html-build
4943

ci-deploy/outside-container.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ IS_TEST_OF_HTML_BUILD_ITSELF=${IS_TEST_OF_HTML_BUILD_ITSELF:-false}
2424
git submodule update
2525
)
2626

27-
git clone --depth 1 https://github.com/whatwg/wattsi.git wattsi
28-
2927
git clone --depth 1 https://github.com/pts/pdfsizeopt.git pdfsizeopt
3028

3129
# Copy the Docker-related stuff into the working (grandparent) directory.

0 commit comments

Comments
 (0)