neko/dev/npm

13 lines
240 B
Plaintext
Raw Normal View History

2022-07-17 06:53:37 +12:00
#!/bin/sh
cd "$(dirname "$0")"
APP_PATH="$(realpath ../)"
2022-07-17 06:53:37 +12:00
# npm
docker run --rm -it \
--user "$(id -u):$(id -g)" \
--volume "$APP_PATH:$APP_PATH" \
2022-07-17 06:53:37 +12:00
--entrypoint="npm" \
--workdir="$APP_PATH" \
node:18-buster-slim "$@"