diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/docs/Dockerfile | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/docs/Dockerfile')
-rw-r--r-- | testing/web-platform/tests/docs/Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testing/web-platform/tests/docs/Dockerfile b/testing/web-platform/tests/docs/Dockerfile new file mode 100644 index 0000000000..8732db2f7e --- /dev/null +++ b/testing/web-platform/tests/docs/Dockerfile @@ -0,0 +1,23 @@ +FROM python:3.11 + +# No interactive frontend during docker build +ENV DEBIAN_FRONTEND=noninteractive \ + DEBCONF_NONINTERACTIVE_SEEN=true + +RUN apt-get -qqy update \ + && apt-get -qqy install git npm + +WORKDIR /app/ + +COPY package.json requirements.txt ./ + +RUN npm install . +ENV PATH=/app/node_modules/.bin:$PATH + +# Use venv to create a virtual environment with the docs dependencies installed, +# setting the environment variables needed for this to always be active. The +# `./wpt build-docs` then uses this venv with --skip-venv-setup. +ENV VIRTUAL_ENV=/app/venv +RUN python3 -m venv $VIRTUAL_ENV +ENV PATH=$VIRTUAL_ENV/bin:$PATH +RUN pip install -r requirements.txt |