github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/scripts/jest-snapshots/run-docker.sh (about) 1 #!/usr/bin/env bash 2 3 set -euo pipefail 4 5 UPDATE_SNAPSHOTS="${UPDATE_SNAPSHOTS:-}" 6 7 docker run \ 8 -it --rm \ 9 --entrypoint=/bin/bash \ 10 -e UPDATE_SNAPSHOTS="$UPDATE_SNAPSHOTS" \ 11 -v $PWD:/app \ 12 -v /app/node_modules \ 13 -w /app \ 14 node:14.17-slim ./scripts/jest-snapshots/run-snapshots.sh