github.com/dmaizel/tests@v0.0.0-20210728163746-cae6a2d9cee8/metrics/storage/web-tooling-dockerfile/Dockerfile (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 FROM ubuntu:latest 9 10 # Version of the Dockerfile 11 LABEL DOCKERFILE_VERSION="1.0" 12 13 # URL for web tooling test 14 ENV WEB_TOOLING_URL "https://github.com/v8/web-tooling-benchmark" 15 ENV NODEJS_VERSION "setup_14.x" 16 17 RUN apt-get update && \ 18 apt-get install -y build-essential git curl sudo && \ 19 apt-get remove -y unattended-upgrades && \ 20 curl -OkL https://deb.nodesource.com/${NODEJS_VERSION} && chmod +x ${NODEJS_VERSION} && ./${NODEJS_VERSION} && \ 21 apt-get install -y nodejs && \ 22 git clone ${WEB_TOOLING_URL} && \ 23 cd /web-tooling-benchmark/ && npm install --unsafe-perm 24 25 CMD ["/bin/bash"]