Answer the question
In order to leave comments, you need to log in
How to run this command without a script?
Hello everyone,
I can run the following command in my frontend project folder
docker run --rm -v ${PWD}/:/var/task -u 0 node:15-alpine sh /var/task/myscript.sh
Answer the question
In order to leave comments, you need to log in
We call help:
docker run --rm -v ${PWD}/:/var/task -u 0 node:15-alpine sh --help
BusyBox v1.31.1 () multi-call binary.
Usage: sh [-/+OPTIONS] [-/+o OPT]... [-c 'SCRIPT' [ARG0 [ARGS]] / FILE [ARGS] / -s [ARGS]]
Unix shell interpreter
docker run --rm -v ${PWD}/:/var/task -u 0 node:15-alpine sh -c "cd /var/task && npm install && npm ci"
docker run --rm -v ${PWD}/:/var/task -u 0 --workdir="/var/task" node:15-alpine sh -c "npm install && npm ci
docker run --rm -v ${PWD}/:/var/task -u 0 --workdir="/var/task" node:15-alpine npm install && npm ci
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question