github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/metrics/storage/web-tooling-dockerfile/Dockerfile.in (about) 1 # Copyright (c) 2020-2021 Intel Corporation 2 # 3 # SPDX-License-Identifier: Apache-2.0 4 5 # Set up an Ubuntu image with 'web tooling' installed 6 7 # Usage: FROM [image name] 8 # hadolint ignore=DL3007 9 FROM @UBUNTU_REGISTRY@/ubuntu:latest 10 11 # Version of the Dockerfile 12 LABEL DOCKERFILE_VERSION="1.0" 13 14 # URL for web tooling test 15 ENV WEB_TOOLING_URL "https://github.com/v8/web-tooling-benchmark" 16 ENV NODEJS_VERSION "setup_14.x" 17 18 RUN apt-get update && \ 19 apt-get install -y --no-install-recommends build-essential git curl sudo && \ 20 apt-get remove -y unattended-upgrades && \ 21 curl -OkL https://deb.nodesource.com/${NODEJS_VERSION} && chmod +x ${NODEJS_VERSION} && ./${NODEJS_VERSION} && \ 22 apt-get install -y --no-install-recommends nodejs && \ 23 apt-get clean && rm -rf /var/lib/apt/lists && \ 24 git clone ${WEB_TOOLING_URL} /web-tooling-benchmark 25 WORKDIR /web-tooling-benchmark/ 26 RUN npm install --unsafe-perm 27 28 CMD ["/bin/bash"]