Skip to content

Commit 5502b1e

Browse files
authored
Merge pull request #632 from HTTPArchive/docker
Fixed docker build
2 parents 148f635 + f10c314 commit 5502b1e

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Dockerfile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
### Recommend to install with "docker build <GITHUB-REPO-LINK> -t TAGNAME",
1818
### grabs the latest copy of WPT and build time on average takes 10 minutes.
1919

20-
FROM ubuntu
20+
FROM ubuntu:22.04
2121

2222
### PREVENTs INTERACTIVE PROMPTS WHILE INSTALLING ###
2323
ARG DEBIAN_FRONTEND=noninteractive
@@ -30,11 +30,23 @@ RUN apt-get update
3030
# RUN apt-get install -y git
3131
# RUN git clone -b dockerfile https://github.com/sammeboy635/wptagent.git
3232

33+
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
34+
3335
### UPDATE ###
3436
RUN apt-get update
3537

3638
### INSTALL APT-GET LIBS ###
37-
RUN xargs -a /wptagent/.github/workflows/docker-apt-get.txt apt-get install --no-install-recommends --yes; exit 0
39+
RUN apt-get install -y \
40+
python3 python3-pip python3-ujson \
41+
imagemagick dbus-x11 traceroute software-properties-common psmisc libnss3-tools iproute2 net-tools openvpn \
42+
libtiff5-dev libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
43+
python3-dev libavutil-dev libmp3lame-dev libx264-dev yasm autoconf automake build-essential libass-dev libfreetype6-dev libtheora-dev \
44+
libtool libvorbis-dev pkg-config texi2html libtext-unidecode-perl python3-numpy python3-scipy perl \
45+
adb ethtool nodejs cmake git-core libsdl2-dev libva-dev libvdpau-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev texinfo wget \
46+
ttf-mscorefonts-installer fonts-noto fonts-roboto fonts-open-sans ffmpeg npm
47+
48+
### Update the font cache
49+
RUN fc-cache -f -v
3850

3951
### UPGRADING PIP AND INSTALLING REQUIRED PACKAGES ###
4052
RUN python3 -m pip install --upgrade --user pip && \

0 commit comments

Comments
 (0)